Skip to content

shred: refactor to clean up code and reduce syscalls#4493

Merged
sylvestre merged 10 commits intouutils:mainfrom
tertsdiepraam:shred-expand-buffer-size
Mar 24, 2023
Merged

shred: refactor to clean up code and reduce syscalls#4493
sylvestre merged 10 commits intouutils:mainfrom
tertsdiepraam:shred-expand-buffer-size

Conversation

@tertsdiepraam
Copy link
Copy Markdown
Collaborator

@tertsdiepraam tertsdiepraam commented Mar 10, 2023

Closes #4490

Should have some performance improvements too, but the numbers are way to varied to give an exact number. Turns out that the shred code did a lot of things quite weirdly, so I just kept finding things to refactor.

I'll mark this ready after I've looked at the filename generator and cleaned that up too.

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/misc/timeout. tests/misc/timeout is passing on 'main'. Maybe you have to rebase?

@tertsdiepraam tertsdiepraam force-pushed the shred-expand-buffer-size branch from 65d620b to 644fc14 Compare March 10, 2023 20:59
@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

@tertsdiepraam tertsdiepraam force-pushed the shred-expand-buffer-size branch 4 times, most recently from d6393c3 to bd0037b Compare March 13, 2023 10:17
@tertsdiepraam tertsdiepraam marked this pull request as ready for review March 13, 2023 11:44
Comment thread src/uu/shred/shred.md Outdated
Comment thread src/uu/shred/shred.md Outdated
Comment thread src/uu/shred/shred.md Outdated
Comment thread src/uu/shred/shred.md Outdated
@tertsdiepraam tertsdiepraam force-pushed the shred-expand-buffer-size branch from bd0037b to ae53b70 Compare March 13, 2023 17:18
@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

Comment thread src/uu/shred/shred.md Outdated
Comment thread src/uu/shred/shred.md Outdated
@sylvestre sylvestre merged commit 20cfd29 into uutils:main Mar 24, 2023
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.

shred could use fewer syscalls

2 participants