Skip to content

dd: Avoid malloc & 0 fill#11029

Closed
oech3 wants to merge 2 commits intouutils:mainfrom
oech3:dd-resize
Closed

dd: Avoid malloc & 0 fill#11029
oech3 wants to merge 2 commits intouutils:mainfrom
oech3:dd-resize

Conversation

@oech3
Copy link
Copy Markdown
Contributor

@oech3 oech3 commented Feb 19, 2026

dd_copy_8k_blocks +1%
dd_copy_with_seek +1%
dd_copy_4k_blocks +1%
dd_copy_default +1%
dd_copy_64k_blocks 601 µs -> 599.7 µs
dd_copy_partial 550.1 µs -> 550.3 µs (worse)

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Feb 19, 2026

Merging this PR will not alter performance

✅ 9 untouched benchmarks
⏩ 319 skipped benchmarks1


Comparing oech3:dd-resize (0a7884a) with main (e0694a5)

Open in CodSpeed

Footnotes

  1. 319 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@oech3
Copy link
Copy Markdown
Contributor Author

oech3 commented Feb 19, 2026

Still cannot catch perf gain similar with mimalloc.

@xtqqczze
Copy link
Copy Markdown
Contributor

@oech3 I don’t believe this change achieves the behavior described in the title.

@oech3
Copy link
Copy Markdown
Contributor Author

oech3 commented Feb 20, 2026

Avoid truncate?

@xtqqczze
Copy link
Copy Markdown
Contributor

xtqqczze commented Feb 22, 2026

Why do we change from BUF_INIT_BYTE (0xDD) fill to zero fill?

@oech3 oech3 closed this Feb 25, 2026
@oech3 oech3 deleted the dd-resize branch February 25, 2026 00:35
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