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

gateway/assets: process each template and ETag hash in parallel #530

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

Jorropo
Copy link
Contributor

@Jorropo Jorropo commented Dec 30, 2023

From:

init github.com/ipfs/boxo/gateway/assets @26 ms, 18 ms clock, 9887320 bytes, 1496 allocs

To:

init github.com/ipfs/boxo/gateway/assets @10 ms, 3.3 ms clock, 3368 bytes, 11 allocs

This is not optimal but better solutions (like lazy loading) require breaking the API and it's a better job for future someone else.
(the less allocs is missleading inittrace only tracks the init goroutine)

From:
```
init github.com/ipfs/boxo/gateway/assets @26 ms, 18 ms clock, 9887320 bytes, 1496 allocs
```
To:
```
init github.com/ipfs/boxo/gateway/assets @10 ms, 3.3 ms clock, 3368 bytes, 11 allocs
```

This is not optimal but better solutions (like lazy loading) require breaking the API and it's a better job for future someone else.
@Jorropo Jorropo force-pushed the gateway/assets/parallel-compute branch from 2e320fd to 2fdb4a9 Compare December 30, 2023 04:32
Copy link

codecov bot commented Dec 30, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (483bc39) 65.62% compared to head (2fdb4a9) 65.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #530      +/-   ##
==========================================
+ Coverage   65.62%   65.64%   +0.02%     
==========================================
  Files         207      207              
  Lines       25549    25559      +10     
==========================================
+ Hits        16766    16778      +12     
+ Misses       7317     7314       -3     
- Partials     1466     1467       +1     
Files Coverage Δ
gateway/assets/assets.go 77.52% <92.00%> (+7.90%) ⬆️

... and 6 files with indirect coverage changes

@Jorropo Jorropo merged commit 40bbb8c into main Dec 30, 2023
14 checks passed
@Jorropo Jorropo deleted the gateway/assets/parallel-compute branch December 30, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants