-
-
Notifications
You must be signed in to change notification settings - Fork 77
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 ada::can_parse
performance
#377
Comments
I would like to try this |
@anonrig do you have anything specific in mind ? or should I just investigate and try to find something ? |
ideally, we should try to avoid any string allocations whenever we are calling |
I looked briefly and I am not sure what can be done directly in ada:can_parse
|
I give up on this someone else might take over |
what do you guys use for profiling? I don't have much experience with C++, but I'd like to give a shot here |
@CarlosEduR What do you run in your computer? Windows, macOS, Linux? |
@lemire I currently have a dual-boot so I run Linux and Windows, but I usually go with Linux for coding. |
@CarlosEduR Ok. So the first step is 'just' to add can_parse to our benchmarks: ada/benchmarks/benchmark_template.cpp Line 21 in ccb7a26
Basically copying this code, and replacing 'parse' by 'can_parse' ought to do. This would be an excellent start. |
@lemire awesome, I'll do it right now. |
@lemire can_parse benchmark added:
|
@CarlosEduR Would you issue a PR? This is fantastic!!! Once we have good metrics, we can more easily test out ideas. It seems that there are obvious things that we can drop... e.g., sections of code that always succeed and do not impact the rest of the processing. We should be able to go step-by-step. |
@lemire sure, I'll open a PR soon! And it sounds interesting, I'd love to help more on that too. |
Yes. Absolutely. Right now I don't know the easiest way to go forward. |
It is possible to speed-up
ada::can_parse
performance.The text was updated successfully, but these errors were encountered: