-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize unescaping/parsing performance of BamlResourceContent/BamlSt…
…ringToken (#9508) * remove array allocation with CollectionsMarshal * use foreach to prevent multiple pointer shifts * naive span-based unescape over MatchEvaluator, increase perf by 6 times, decrease allocs by 8 times * improve func name and comments, use BamlConst.EscapeChar * add initial searchvalues<string> for tokens to match performance for string with no escapes * Fix is-pattern in null checks, comment spaces
- Loading branch information
Showing
2 changed files
with
113 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters