Skip to content

Remove empty key dirs #4430

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

Merged
merged 4 commits into from
Jun 5, 2025
Merged

Remove empty key dirs #4430

merged 4 commits into from
Jun 5, 2025

Conversation

tybug
Copy link
Member

@tybug tybug commented Jun 5, 2025

No description provided.

@tybug tybug requested review from DRMacIver and Zac-HD as code owners June 5, 2025 04:29
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming you ran a benchmark or something and it looks good?

@tybug
Copy link
Member Author

tybug commented Jun 5, 2025

I'm assuming you ran a benchmark or something and it looks good?

yeah, rmdir on a full dir (failure) is about 6x less expensive than file deletion, and rmdir on an empty dir (success) is the same cost as creating/deleting a dir/file. ~20% increase in .delete runtime isn't great, but I think it's acceptable

@tybug tybug enabled auto-merge June 5, 2025 21:39
@tybug tybug merged commit 60e6bf6 into HypothesisWorks:master Jun 5, 2025
59 checks passed
@tybug tybug deleted the db-delete-empty branch June 6, 2025 03:39
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