Skip to content

Optimize DAG-CBOR encode by sorting map entries on a pooled stack and borrowing container items - #122

Merged
MarshalX merged 1 commit into
mainfrom
pooled-map-entries
Sep 11, 2026
Merged

MarshalX merged 1 commit into
mainfrom
pooled-map-entries

Conversation

@MarshalX

Copy link
Copy Markdown
Owner

No description provided.

@codspeed

codspeed Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 19.77%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 2 improved benchmarks
✅ 198 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_dag_cbor_encode_real_data[citm_catalog.json] 7.2 ms 6 ms +19.79%
⚡ test_encode[citm_catalog-libipld] 7.2 ms 6 ms +19.75%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing pooled-map-entries (d39af2c) with main (67aa24a)

Open in CodSpeed

Base automatically changed from fixed-width-header-reads to main September 11, 2026 18:46
@MarshalX
MarshalX merged commit 55546d8 into main Sep 11, 2026
5 checks passed
@MarshalX
MarshalX deleted the pooled-map-entries branch September 11, 2026 18:56
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