Skip to content
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

Port Succo's fix to cache decodeHooks #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cedric-cordenier
Copy link

Like @Succo we are seeing a big performance hit from typedDecodeHook being called repeatedly.

@edanko
Copy link

edanko commented Jul 18, 2024

This is awesome! 3x improvement on a real life code.
BenchmarkBefore-12 9506 144817 ns/op 3095 B/op 55 allocs/op BenchmarkAfter-12 24036 51131 ns/op 3059 B/op 54 allocs/op

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.

None yet

2 participants