Skip to content

head: splice fast-path for -c#11620

Draft
oech3 wants to merge 3 commits intouutils:mainfrom
oech3:head-splice
Draft

head: splice fast-path for -c#11620
oech3 wants to merge 3 commits intouutils:mainfrom
oech3:head-splice

Conversation

@oech3
Copy link
Copy Markdown
Contributor

@oech3 oech3 commented Apr 3, 2026

Closes #11491 Needs cat from main branch.

$ truncate -s 1PB huge
$ cat huge | target/debug/head -c 1P|pv>/dev/null
^C.5GiB 0:00:02 [38.7GiB/s]

File input is not supported which is most common usecase.
This is draft until #11458 was merged.

@oech3 oech3 force-pushed the head-splice branch 2 times, most recently from 475564d to 08d3ce4 Compare April 4, 2026 15:02
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.

head: splice fast-path for -c

1 participant