Skip to content
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

Improve parsing performance #29

Merged
merged 1 commit into from
Jun 11, 2023
Merged

Improve parsing performance #29

merged 1 commit into from
Jun 11, 2023

Commits on Jun 11, 2023

  1. Improve parsing performance

    - In LinguiniParser, ZeroCopyReader, ZeroCopyUtil: change helpers from dealing in ReadOnlyMemory<char> to char. In inner loops this removes a lot of redundant checks for a span of length 1 and inlines more readily.
    - In ZeroCopyReader add helpers for SeekEol, IndexOfAnyChar. These use existing helper methods of Span that are SIMD accelerated to search for indexes quickly. These provide significant speedups compared to incrementing the index in a loop.
    - In FluentBundle.AddResourceOverriding, provide a specialized 'override' method to avoid two dictionary lookups and allocating an empty list.
    RoosterDragon committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    bff3e4b View commit details
    Browse the repository at this point in the history