mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
da813e0486
Moved Array#intersect? implementation from Ruby to C to improve memory usage and performance with early termination optimization. The C implementation uses hash-based lookup for large arrays (>16 elements) and linear search for smaller arrays. Added comprehensive test coverage including early termination scenarios, empty arrays, size optimization verification, and edge cases with duplicates and large arrays. Co-authored-by: Atlassian Rovo Dev