Skip to content

Make WS updates more efficient.#232

Merged
frank-weinberg merged 1 commit intodevfrom
ws-trie
Apr 16, 2019
Merged

Make WS updates more efficient.#232
frank-weinberg merged 1 commit intodevfrom
ws-trie

Conversation

@brian-brazil
Copy link
Copy Markdown
Contributor

Use a trie to find relevant callbacks, this cuts about 90% of
WS-related CPU.

We don't need to go through all the paths when we've already found one.

Use a trie to find relevant callbacks, this cuts about 90% of
WS-related CPU.

We don't need to go through all the paths when we've already found one.
@frank-weinberg
Copy link
Copy Markdown
Contributor

Maybe we should split the path into properties and IDs (i.e. split at each '.' and '(') and use those components to index the trie instead of every single letter. This would get rid of unwanted matches when one property is a substring of another.

@brian-brazil
Copy link
Copy Markdown
Contributor Author

If we do that we should do it back in the backend first, and it is an API change. We'd also have to think about escaping.

I'd suggest getting this in for now, as there's big improvements.

@frank-weinberg frank-weinberg merged commit 1bbc385 into dev Apr 16, 2019
@brian-brazil brian-brazil deleted the ws-trie branch April 16, 2019 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants