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

fix: optimize consume method #42

Merged
merged 3 commits into from
Nov 24, 2022

Conversation

mpetrunic
Copy link
Contributor

Related to: libp2p/js-libp2p#1342 but not shawing a lot of ms there 😅
Benchmarking against the current master shows a big improvement

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Nov 24, 2022

Codecov Report

Base: 100.00% // Head: 99.53% // Decreases project coverage by -0.46% ⚠️

Coverage data is based on head (99c830e) compared to base (1a3cb65).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##            master      #42      +/-   ##
===========================================
- Coverage   100.00%   99.53%   -0.47%     
===========================================
  Files            2        3       +1     
  Lines         1677     1922     +245     
  Branches       332      266      -66     
===========================================
+ Hits          1677     1913     +236     
- Misses           0        9       +9     
Flag Coverage Δ
chrome 100.00% <ø> (+0.52%) ⬆️
chrome-webworker ?
electron-main ?
electron-renderer ?
firefox ?
firefox-webworker ?
node 99.53% <100.00%> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/index.ts 98.50% <100.00%> (-1.50%) ⬇️
test/indexof.spec.ts 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@achingbrain achingbrain merged commit 071ae6c into achingbrain:master Nov 24, 2022
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
## [2.4.2](v2.4.1...v2.4.2) (2022-11-24)

### Bug Fixes

* optimize consume method ([#42](#42)) ([071ae6c](071ae6c))
@github-actions
Copy link

🎉 This PR is included in version 2.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mpetrunic mpetrunic deleted the fix/imrove-consume-speed branch November 24, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants