-
Notifications
You must be signed in to change notification settings - Fork 22
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
Performance problem #16
Comments
hi DrEight, |
Thank you for the clarification. I've already implemented a kind of 'batch' call, but it is not very elegant, so I'll don't create a pull request. |
to improve performance, the best way is use memorymapped object, you can see the unit test for reference. The sample will be published in next phase, hope I can finish it this month. |
I notice a performance bottleneck passing to JS a Dictionary<string,string> of 1000 items.
So after a long investigation I found that the culprit is the context switching registering the type.
Every 'WriteProperty' does a context switch. I don't understand why.
So I removed the context switch ( I exposed the 'Enter' and 'Leave' to the rules and I created a 'WriteProperty' that does not switch the context.
The difference is impressive: with the context switch, passing the dictionary it takes 2500ms. Without 15ms.
Do I miss something, or is it a bug ?
The text was updated successfully, but these errors were encountered: