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: ipfs/protons
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: protons-v4.0.3
Choose a base ref
...
head repository: ipfs/protons
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: protons-v5.0.0
Choose a head ref
  • 4 commits
  • 50 files changed
  • 2 contributors

Commits on Aug 10, 2022

  1. fix!: increase encoding/decoding performance (#58)

    Switches the internal serialization/deserialization code to use the Reader/Writer from protobufjs as it's very fast and also the least interesting thing about this module.
    
    ```console
    % node packages/protons-benchmark/dist/src/encode.js
    pbjs x 1,067,457 ops/sec ±1.74% (83 runs sampled)
    protons x 1,165,064 ops/sec ±2.78% (90 runs sampled)
    protobufjs x 1,317,685 ops/sec ±2.73% (89 runs sampled)
    Fastest is protobufjs
    ```
    
    ```console
    % node packages/protons-benchmark/dist/src/decode.js
    pbjs x 1,997,186 ops/sec ±0.87% (86 runs sampled)
    protons x 1,490,204 ops/sec ±2.40% (90 runs sampled)
    protobufjs x 1,809,549 ops/sec ±0.58% (88 runs sampled)
    Fastest is pbjs
    ```
    
    ```console
     % node packages/protons-benchmark/dist/src/index.js 
    pbjs x 11,307 ops/sec ±6.04% (86 runs sampled)
    protons x 11,376 ops/sec ±2.33% (80 runs sampled)
    protobufjs x 12,086 ops/sec ±1.84% (89 runs sampled)
    Fastest is protobufjs,pbjs
    ```
    
    ```console
    % node packages/protons-benchmark/dist/src/rpc.js
    protons x 3,308,190 ops/sec ±0.57% (92 runs sampled)
    protobufjs x 3,135,946 ops/sec ±2.14% (91 runs sampled)
    Fastest is protons
    ```
    
    BREAKING CHANGE: the exported types of `protons-runtime` have changed and protobuf encoders/decoders will need to be regenerated
    achingbrain authored Aug 10, 2022
    Configuration menu
    Copy the full SHA
    9987b97 View commit details
    Browse the repository at this point in the history
  2. chore(release): 3.0.0 [skip ci]

    ## [protons-runtime-v3.0.0](protons-runtime-v2.0.2...protons-runtime-v3.0.0) (2022-08-10)
    
    ### ⚠ BREAKING CHANGES
    
    * the exported types of `protons-runtime` have changed and protobuf encoders/decoders will need to be regenerated
    
    ### Bug Fixes
    
    * increase encoding/decoding performance ([#58](#58)) ([9987b97](9987b97))
    semantic-release-bot committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    fd1622d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7568283 View commit details
    Browse the repository at this point in the history
  4. chore(release): 5.0.0 [skip ci]

    ## [protons-v5.0.0](protons-v4.0.3...protons-v5.0.0) (2022-08-10)
    
    ### ⚠ BREAKING CHANGES
    
    * the exported types of `protons-runtime` have changed and protobuf encoders/decoders will need to be regenerated
    
    ### Bug Fixes
    
    * increase encoding/decoding performance ([#58](#58)) ([9987b97](9987b97))
    
    ### Trivial Changes
    
    * update sibling deps ([7568283](7568283))
    semantic-release-bot committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    98a66fb View commit details
    Browse the repository at this point in the history
Loading