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/go-cid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0
Choose a base ref
...
head repository: ipfs/go-cid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.0
Choose a head ref
  • 14 commits
  • 13 files changed
  • 6 contributors

Commits on Aug 17, 2021

  1. Configuration menu
    Copy the full SHA
    44cccd6 View commit details
    Browse the repository at this point in the history
  2. run gofmt -s

    web3-bot committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    6e96c56 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2628583 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b8eba8e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9e2855d View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Merge pull request #131 from ipfs/web3-bot/sync

    sync: update CI config files
    Stebalien committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    cf76220 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2021

  1. avoid double alloc in NewCidV1

    We allocate once via "make([]byte, len)",
    and again when that buffer is converted to a string.
    
    Thankfully, since Go 1.10 we have strings.Builder,
    designed specifically for this use case.
    
    In a downstream benchmark in go-car,
    which needs to reconstruct many CID values,
    we see small but nice gains:
    
        name           old time/op    new time/op    delta
        ReadBlocks-16    1.09ms ± 4%    1.06ms ± 5%   -3.33%  (p=0.007 n=11+11)
    
        name           old speed      new speed      delta
        ReadBlocks-16   478MB/s ± 4%   494MB/s ± 5%   +3.46%  (p=0.007 n=11+11)
    
        name           old alloc/op   new alloc/op   delta
        ReadBlocks-16    1.30MB ± 0%    1.25MB ± 0%   -3.86%  (p=0.000 n=12+12)
    
        name           old allocs/op  new allocs/op  delta
        ReadBlocks-16     9.50k ± 0%     8.45k ± 0%  -11.05%  (p=0.000 n=12+12)
    mvdan committed Sep 12, 2021
    Configuration menu
    Copy the full SHA
    5640b01 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Benchmark existing ways to check for IDENTITY CIDs

    Add benchmarks that compare two ways of checking for
    `multihash.IDENTITY` code:
    1. `Cid.Prefix().MhType`
    2. Decode of `Cid.Hash()`
    
    This benchmark illustrates that using Cid.Prefix is more efficient than
    `multihash.Decode`. Users wishing to perform such a check should use
    `Cid.Prefix`.
    
    Consider that `Cid.Prefix` is already efficient enough and introducing a
    dedicated API for performing this check will likely result in small
    gains.
    
    Relates to #133
    masih committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    28f4a5e View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. sync: update CI config files (#136)

    * add version.json file
    
    * update .github/workflows/go-test.yml
    
    * update .github/workflows/go-check.yml
    
    * add .github/workflows/releaser.yml
    
    * add .github/workflows/release-check.yml
    
    * add .github/workflows/tagpush.yml
    
    Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
    web3-bot and web3-bot committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    dc3bb41 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. bump go.mod to Go 1.17 and run go fix

    web3-bot authored and rvagg committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    1d11990 View commit details
    Browse the repository at this point in the history
  2. update .github/workflows/automerge.yml

    web3-bot authored and rvagg committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    395d392 View commit details
    Browse the repository at this point in the history
  3. update .github/workflows/go-test.yml

    web3-bot authored and rvagg committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    6be8b63 View commit details
    Browse the repository at this point in the history
  4. update .github/workflows/go-check.yml

    web3-bot authored and rvagg committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    ddd9ef7 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2022

  1. fix: remove invalid multicodec2string mappings (#137)

    * refactor: remove Codecs table
    * chore: go-cid 0.2.0
    
    Codec table was missing dag-json and it had invalid code for dag-cbor.
    It also had invalid string representation of dag-pb -- it was using
    'protobuf' which is a totally different code.
    
    This removes invalid mappings entirely.
    https://github.com/multiformats/go-multicodec should be used instead.
    lidel committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    b2064d7 View commit details
    Browse the repository at this point in the history
Loading