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

Add support for user specified blocksize and increase default to 8192 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

djhejna
Copy link

@djhejna djhejna commented Dec 17, 2020

Module is very useful, thanks! I found myself wanting better performance. For larger files increasing block-size significantly improves performance. Adding command line flag and parameter let's users specify block-size without rebuilding code. I found no measurable performance hit using 8K reads of 4k files (read just returns amount read); however larger block-size on large files significantly improved performance. Most modern drives drive prefetch in larger blocks (SSD) and filesystems often define larger block-sizes. I am less wedded to the default size change, than I am adding the command line option.

@StudioBreeze
Copy link

Can you please merge this PR?

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