Skip to content

Performance problem #16

Description

@DrEight

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions