> 1. Short-circuiting vs Allocation: Using `array_filter` processes the entire > array and allocates a new filtered array in memory, whereas a dedicated C > implementation (`array_str_contains` / short-circuit loop) immediately > returns `true` on the first match without extra allocations.
What do you mean? I thought the purpose of the new function was to return a list with all matching entries? How could it short-circuit on the first match? > 2. Direct C-level loop: Bypassing the VM dispatch loop for each element gives > noticeable gains, especially on larger datasets or hot paths. What kind of dispatch are you talking about here? Do you mean calling str_contains() for each row?
