-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
QuerySelectorAll - performance #584
Comments
I think caching one or the other thing may indeed be useful. Caching |
An example to reproduce your results would be helpful. Used HTML and CSS selectors. |
Sorry for late response i have short vacation. Here is simplify version of my testing scenario (in my testing scenario i also extract some data but For benchmark i use BenchmarkDotNet. Example: |
Would be simpler to have a Gist. |
Ok here is the gist. https://gist.github.com/jirisykora83/d1316a636d5f6c154872cc746c7654a1 |
Great, thanks! |
Improve QuerySelectorAll performance
I try to profile my app because i facing issue with performance (main reason why i recently switch from HAP). And i notice
NodeList.get_Length()
inQuerySelectorAll
is take lot of time (almost 10%). Of course it depend on how much elements is in collection).I want to try rewrite it with my custom QuerySelectorAll but i end with too many class is need to rewrite. Maybe you can try just save
elements.Length
to local variable it should get some percent of performance in this highly used function.Testing with last stable version 0.9.9 but from first look at dev branch i think it is same in 0.1.0.
VS 2017 - release mode of course
The text was updated successfully, but these errors were encountered: