Skip to content

chore(rolldown): use bounded channel to avoid dynamic memory allocation#872

Merged
Brooooooklyn merged 2 commits intomainfrom
04-15-chore_rolldown_use_bounded_channel_to_avoid_dynamic_memory_allocation
Apr 16, 2024
Merged

chore(rolldown): use bounded channel to avoid dynamic memory allocation#872
Brooooooklyn merged 2 commits intomainfrom
04-15-chore_rolldown_use_bounded_channel_to_avoid_dynamic_memory_allocation

Conversation

@Brooooooklyn
Copy link
Member

No description provided.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Brooooooklyn and the rest of your teammates on Graphite Graphite

@Brooooooklyn Brooooooklyn requested a review from hyf0 April 15, 2024 14:05
@netlify
Copy link

netlify bot commented Apr 15, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit d25fcc1
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/661e25a4a6ad0a0009881971

@codecov
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 78.31%. Comparing base (5106eda) to head (e60dc50).
Report is 1 commits behind head on main.

❗ Current head e60dc50 differs from pull request most recent head d25fcc1. Consider uploading reports for the commit d25fcc1 to get more accurate results

Files Patch % Lines
...s/rolldown/src/module_loader/normal_module_task.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #872   +/-   ##
=======================================
  Coverage   78.31%   78.31%           
=======================================
  Files         137      137           
  Lines        6847     6849    +2     
=======================================
+ Hits         5362     5364    +2     
  Misses       1485     1485           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hyf0
Copy link
Member

hyf0 commented Apr 15, 2024

Do we do this only for supporting wasi? Unounded channel is not usable in wasi target?

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 15, 2024

CodSpeed Performance Report

Merging #872 will not alter performance

Comparing 04-15-chore_rolldown_use_bounded_channel_to_avoid_dynamic_memory_allocation (d25fcc1) with main (8fc0769)

Summary

✅ 6 untouched benchmarks

@hyf0 hyf0 mentioned this pull request Apr 15, 2024
@hyf0 hyf0 self-assigned this Apr 15, 2024
@Brooooooklyn
Copy link
Member Author

Benchmark shows it slower than the UnboundedChannel, I'll take a look

@Brooooooklyn Brooooooklyn marked this pull request as draft April 15, 2024 15:03
@hyf0
Copy link
Member

hyf0 commented Apr 15, 2024

Benchmark shows it slower than the UnboundedChannel, I'll take a look

Could be just noise. I also benchmark it locally. Seems fine.

@Brooooooklyn Brooooooklyn marked this pull request as ready for review April 16, 2024 04:00
@hyf0 hyf0 force-pushed the 04-15-chore_rolldown_use_bounded_channel_to_avoid_dynamic_memory_allocation branch from 2733cea to e60dc50 Compare April 16, 2024 07:02
@Brooooooklyn Brooooooklyn merged commit ee7126a into main Apr 16, 2024
@Brooooooklyn Brooooooklyn deleted the 04-15-chore_rolldown_use_bounded_channel_to_avoid_dynamic_memory_allocation branch April 16, 2024 07:40
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.

2 participants