-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
implement faster HashMap #4551
implement faster HashMap #4551
Conversation
ignore unrelated php failure |
(There may be other optimizations that Antlr4ng does, but I haven't gotten that far.) |
So we’re talking 60-65% cumulated improvements ? Whoosh!!!Envoyé de mon iPhoneLe 10 mars 2024 à 23:32, Ken Domino ***@***.***> a écrit :
(There may be other optimizations that Antlr4ng does, but I haven't gotten that far.)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yes, something like ~60%. There are probably other optimizations to look at. At some point, can we get a release of 4.13.2?? No hurries though, after other fixes are considered. I did not like this 4.13.1-patch1 release because that breaks my testing code, and I don't think GitHub Dependabot even considers this a release. |
This PR passes all grammars-v4 tests. |
That's a question for @parrt. |
@kaby76 it's be interesting to run your performance benchmark on the merged dev version |
antlr4ng also implements specialized constructors which avoid testing instance types. It might be worth doing this for the objects that are instantiated millions of times (such as ATNConfig). But we might be reaching a point where profiling becomes necessary to better understand the remaining bottlenecks. |
I can revise and rebase that branch if you're willing to double-check that... |
I'm profiling the CSharp target because your PR changed one file in that target. (IMO, C# has far-superior profiling tools to anything I've seen in all other targets.) |
new faster HashMap