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

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

Merged
merged 10 commits into from
Mar 24, 2023

Conversation

tertsdiepraam
Copy link
Member

@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

GNU testsuite comparison:

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

@github-actions
Copy link

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
src/uu/shred/shred.md Outdated Show resolved Hide resolved
src/uu/shred/shred.md Outdated Show resolved Hide resolved
src/uu/shred/shred.md Outdated Show resolved Hide resolved
src/uu/shred/shred.md Outdated Show resolved Hide resolved
@github-actions
Copy link

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?

src/uu/shred/shred.md Outdated Show resolved Hide resolved
src/uu/shred/shred.md Outdated Show resolved Hide resolved
@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