Performance Improvements in Set Operations
summary
Dyalog 18.0 adds set-primitive optimizations (membership, index, union, intersection, differ) but 18.2 reverts some changes and performance varies by input. Measurements show hash collisions that cause execution spikes around a 2048-size boundary, a small-set optimization, and a faster lookup-mode that should run earlier (algorithm selection). Increasing hash-table size 8× reduces spikes; some cases show an order-of-magnitude speedup (≈0.1 ms vs 1 ms). Reintroductions require ≥2× improvement and instrumented interpreter traces to prioritize fixes.
AI-written summary · about
