Use threads #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We should probably make use of threads where possible. It should be safe to use a separate thread for each file in the EPUB. Could be too much overhead though. Maybe it is better to use one thread per EPUB.
I tested a bit with
time ./build/src/epubgrep -EC2 'a' <files> > /dev/null
. I made 2 passes each time and took the average.That's 31-33% improvement.
With 6 books and
time ./build/src/epubgrep -EiC2 '(aber|doch)' <files> > /dev/null
, 4 passes:25% improvement.