Hi سپهر

‪On Mon, Aug 31, 2026 at 12:21 AM ‫سپهر محمودی‬‎ <[email protected]>
wrote:‬

> While `array_filter` with a closure can achieve this, it introduces
> noticeable overhead in userland due to repeated closure invocations and
> type checks on every element.
>
>>
If this overhead could be reduced, it would improve the performance of any
built-in function that calls a user-land closure, not limited to the
array_filter + str_contains combo. Have you considered solving this problem
instead, at least for closures generated by partial applications of
built-in functions?

-- 
  Best regards,
      Bruce Weirdan                                     mailto:
[email protected]

Reply via email to