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

Add optional orjson support for faster json reading and writing #2854

Merged
merged 11 commits into from
Jul 29, 2024

Commits on Jul 26, 2024

  1. initial orjson support, for hextuples parser and serializer, and firs…

    …t stages of json-ld parser.
    
    This relies on merging of the BytesIOWrapper PR.
    ashleysommer committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    1395082 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2024

  1. Finish work bringing orjson to JSON-LD Graph Parser

    Add orjson to sparql-results-json parser, and sparql-results-json serializer
    Tangential fixes to all the other non-json SPARQL-Results serializers
    Adding better typing to all SPARQL-Results Serializers.
    Got 7 ignored tests passing for SPARQL-Results Serializers.
    ashleysommer committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    9989784 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Merge branch 'main' into orjson_support

    # Conflicts:
    #	rdflib/plugins/shared/jsonld/util.py
    ashleysommer committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    31d7fa2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb71e06 View commit details
    Browse the repository at this point in the history
  3. Fix MyPy complaint in JSON-LD parser caused by reusing a variable nam…

    …e after it already has a type associated.
    ashleysommer committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    5d002bd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8965a45 View commit details
    Browse the repository at this point in the history
  5. MyPy typing fixes, Black Fixes, and Ruff linting fixes for orjson bra…

    …nch after resolving recent merge conflicts.
    ashleysommer committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    80dd569 View commit details
    Browse the repository at this point in the history
  6. Add missing updated poetry.lock lockfile that is supposed to accompan…

    …y the `orjson` pyproject addition.
    ashleysommer committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    90815d0 View commit details
    Browse the repository at this point in the history
  7. The linter ignore-assignment-type suppressions aren't used when orjso…

    …n is not installed throwing a mypy error, but they are needed when orjson is installed to prevent different mypy errors. So add additional unused-ignore suppressions.
    ashleysommer committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    e632b56 View commit details
    Browse the repository at this point in the history
  8. Change internal usages of json serializer indent to 2, so that orjson…

    … and stdlib json outputs are the same for docs and comparison purposes.
    ashleysommer committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    cccc94d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    14e4f95 View commit details
    Browse the repository at this point in the history