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

Implement buffer recycling for CharacterReader #1800

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on Jan 6, 2023

  1. Reuse buffers

    chibenwa authored and jhy committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    dfb065a View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2023

  1. Configuration menu
    Copy the full SHA
    a950665 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f108026 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2023

  1. Moving char buffer size back to 32K

    Perf tests show this performs better when parsing larger docs; small strings still get the speed boost as the buffer is recycled.
    jhy committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    b699998 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. Removed need of BufferedReader

    In CharacterReader. This removes the redundant buffer allocation, and simplifies the read.
    
    For small file reads (same as small string test), updated version is ~ 20% faster than original.
    jhy committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    30e73c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2023

  1. Configuration menu
    Copy the full SHA
    57475c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. consumeSubQuery should not drop leading combinators

    Refactored so that it eats until a combinator is seen after non-combinator content, and returns it all.
    
    And corrected unit tests that were incorrectly relying on that behavior.
    
    Note that a leading combinator will combine against the root element, which is either the Document, or the context element.
    
    Fixes jhy#1707
    jhy committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    51f7d89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c57f30 View commit details
    Browse the repository at this point in the history
  3. Added the :is pseudo selector

    jhy committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    ef8106e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1113cad View commit details
    Browse the repository at this point in the history