-
Notifications
You must be signed in to change notification settings - Fork 463
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
Improve extension creation runtime #6958
Improve extension creation runtime #6958
Conversation
What's the advantage of using |
It's faster and simpler |
Is it really faster? This article here seems to suggest otherwise: Typical applications should not create that many different exception types anyway though, so it probably doesn't matter much? |
I don't know about the benchmark, but according to my knowledge And in the benchmark you can see that it's 20 times slower: |
😱 Then that makes a lot of sense of course. Not sure what the guy in that medium article benchmarked with. This jsbenchmark.com is nice BTW. @cristianoc Are the changes fine with you, too? |
Co-authored-by: Christoph Knittel <christoph@knittel.cc>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks a lot!
Also, removed
/1
forRE_EXN_ID
created the first time