Skip to content

Conversation

@TomA-R
Copy link
Member

@TomA-R TomA-R commented Oct 18, 2025

What/Why?

Micro-optimisation in BindingClosureFactory: speed up injector invocation and proxy closures. Replace call_user_func_array with direct call + splat in Injector::invoke.

Based on benchmarks on my laptop, this will save approx 7.5 µs per request (assuming 300 invocations). Not spectacular (I had hoped for more) but since the work is already done, I'd like to move forward with it.

Rollout/Rollback

Merge / revert

Testing

Tests cover all of this already, and they still pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants