Skip to content

Conversation

jwbee
Copy link

@jwbee jwbee commented May 25, 2025

I noticed that ParseEntity was hot in the profiles of my workload and the only entity of interest was nbsp, which is pretty far down the list. This adds a lazily-constructed lookup table for the first character of the entity, preserving the overall strategy of ParseEntity but skipping the expensive scan for the 2nd and subsequent occurrences of any given entity.

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.

1 participant