-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert pull request #37 #57
Conversation
Hi @daffl, as discussed in #37 (comment) I have put the params/props management back in the HookManager while keeping the fixes made since. I still have to add the options and see some easy performance improvements. |
I just set the defaults of props and params to null rather than an empty array/object, and then avoid unnecessary concat and assign calls. I added a log in the benchmark tests before/after these changes:
|
Great, thank you, I've been meaning to do this for a while. I'll have a look at it this weekend 😄 |
I just added a test with middleware options: https://github.com/feathersjs/hooks/pull/57/files#diff-e331ea4ca89b251f010772fe725aa7249277dbc6d472a1fe408a44f7eedbf1abR202-R218 |
Great, thank you for doing that. Also, really nice to see the performance improvements. |
No description provided.