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

Improve performance (remove a lot of unnecessary allocs and drops) #8

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

MarshalX
Copy link
Owner

@MarshalX MarshalX commented Feb 25, 2024

Ipld allocated and dropped with short living time

from #7

Before:

Hello World Decode:
===================
libipld  : 243 ns

Realistic Decode Tests:
=======================
citm_catalog.json.dagcbor      libipld  : 9.55 ms (34.18 MB/s)
canada.json.dagcbor            libipld  : 11.01 ms (91.46 MB/s)
twitter.json.dagcbor           libipld  : 3.27 ms (117.36 MB/s)

After:

Hello World Decode:
===================
libipld  : 263 ns

Realistic Decode Tests:
=======================
citm_catalog.json.dagcbor      libipld  : 4.61 ms (70.81 MB/s)
canada.json.dagcbor            libipld  : 6.69 ms (150.66 MB/s)
twitter.json.dagcbor           libipld  : 2.53 ms (151.70 MB/s)
  • citm_catalog.json.dagcbor x2
  • canada.json.dagcbor x1.64
  • twitter.json.dagcbor x1.29

@MarshalX MarshalX mentioned this pull request Feb 25, 2024
@MarshalX MarshalX merged commit 7e36301 into main Feb 25, 2024
15 checks passed
@MarshalX MarshalX deleted the fix-ipld-allocs branch February 25, 2024 21:41
@MarshalX MarshalX changed the title Fix performance (remove a lot of unnecessary allocs and drops) Improve performance (remove a lot of unnecessary allocs and drops) Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant