const input = Stream.pull(source, transform1, transform2);
The efficiency depends on the query size relative to the data distribution. A small query in a sparse region prunes almost everything. A query that covers the whole space prunes nothing (because every node overlaps), degenerating to a brute-force scan. The quadtree gives you the most benefit when your queries are spatially local, which is exactly the common case for map applications, game physics, and spatial databases.
,这一点在搜狗输入法2026中也有详细论述
// 易错点1:边界处理 - 空链表直接返回空数组
设区的市级以上人民政府部门在本级人民政府行政执法监督机构的指导下,依照有关法律规定对下级人民政府相应部门的行政执法工作进行督促指导。