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

Implements support for start and end offsets. #4

Closed
KelSolaar opened this issue Nov 2, 2019 · 1 comment
Closed

Implements support for start and end offsets. #4

KelSolaar opened this issue Nov 2, 2019 · 1 comment

Comments

@KelSolaar
Copy link
Contributor

Hi,

This relates to #3 in my Need for Speed, it would be great to be able to specify start and end offsets to read the file, this way one could cheaply multiprocess the entire scan by allocating different chunks of a large file to different stringsext instances.

Cheers,

Thomas

@getreu
Copy link
Owner

getreu commented Jan 3, 2020

Hello Thomas,

could cheaply multiprocess the entire scan

Stringsext does spawn several os-threads already and runs the scan in parallel. Most probably you will not be faster launching more than one instance Stringsext on the same machine. Nevertheless, to try you might want to check out the new Stringsext version 2 and run:

head -c 100000  input.raw | stringsext -p out1.txt &
tail -c + 100000 input.raw  | stringsext -s 100000 -p out2.txt

My first tests also show, that version 2 is at least 30% faster. This might help also.

@getreu getreu closed this as completed Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants