Use threads #4
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tastytea/epubgrep#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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.