8000 Comparing v1.0.119...v1.0.121 · serde-rs/json · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: serde-rs/json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.119
Choose a base ref
...
head repository: serde-rs/json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.121
Choose a head ref
  • 11 commits
  • 6 files changed
  • 4 contributors

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    3480fed View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1152 from cforycki/fix/index-map-minimal-version

    fix: indexmap minimal version with Map::shift_insert()
    dtolnay authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    962c0fb View commit details
    Browse the repository at this point in the history
  3. Release 1.0.120

    dtolnay committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    bcedc3d View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Correct documentation URL for Value's Index impl.

    The current id doesn't exist, so the link just goes to the top of the docs for
    Value, rather than to the intended section covering `impl<I> Index<I> for
    Value`.
    dpathakj committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    fcb5e83 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Merge pull request #1153 from dpathakj/master

    Correct documentation URL for Value's Index impl.
    dtolnay authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    3fd6f5f View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Ignore byte_char_slices clippy lint in test

        warning: can be more succinctly written as a byte str
            --> tests/test.rs:1108:13
             |
        1108 |             &[b'"', b'\n', b'"'],
             |             ^^^^^^^^^^^^^^^^^^^^ help: try: `b"\"\n\""`
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
             = note: `-W clippy::byte-char-slices` implied by `-W clippy::all`
             = help: to override `-W clippy::all` add `#[allow(clippy::byte_char_slices)]`
    
        warning: can be more succinctly written as a byte str
            --> tests/test.rs:1112:13
             |
        1112 |             &[b'"', b'\x1F', b'"'],
             |             ^^^^^^^^^^^^^^^^^^^^^^ help: try: `b"\"\x1F\""`
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
    dtolnay committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    3f1c6de View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Configuration menu
    Copy the full SHA
    6a306e6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1159 from iex-rs/fix-recursion

    Move call to tri! out of check_recursion!
    dtolnay authored Jul 26, 2024
    Configuration menu
    Copy the full SHA
    40dd7f5 View commit details
    Browse the repository at this point in the history
  3. Optimize position search in error path

    Translating index into a line/column pair takes considerable time.
    Notably, the JSON benchmark modified to run on malformed data spends
    around 50% of the CPU time generating the error object.
    
    While it is generally assumed that the cold path is quite slow, such a
    drastic pessimization may be unexpected, especially when a faster
    implementation exists.
    
    Using vectorized routines provided by the memchr crate increases
    performance of the failure path by 2x on average.
    
    Old implementation:
    				DOM         STRUCT
    	data/canada.json        122 MB/s    168 MB/s
    	data/citm_catalog.json  135 MB/s    195 MB/s
    	data/twitter.json       142 MB/s    226 MB/s
    
    New implementation:
    				DOM         STRUCT
    	data/canada.json        216 MB/s    376 MB/s
    	data/citm_catalog.json  238 MB/s    736 MB/s
    	data/twitter.json       210 MB/s    492 MB/s
    
    In comparison, the performance of the happy path is:
    
    				DOM         STRUCT
    	data/canada.json        283 MB/s    416 MB/s
    	data/citm_catalog.json  429 MB/s    864 MB/s
    	data/twitter.json       275 MB/s    541 MB/s
    
    While this introduces a new dependency, memchr is much faster to compile
    than serde, so compile time does not increase significantly.
    Additionally, memchr provides a more efficient SWAR-based implementation
    of both the memchr and count routines even without std, providing
    benefits for embedded uses as well.
    purplesyringa committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    b1edc7d View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. Merge pull request #1160 from iex-rs/efficient-position

    Optimize position search in error path
    dtolnay authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    b0d678c View commit details
    Browse the repository at this point in the history
  2. Release 1.0.121

    dtolnay committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    eca2658 View commit details
    Browse the repository at this point in the history
Loading
0