jlsutherland / doc2text

Detect text blocks and OCR poorly scanned PDFs in bulk. Python module available via pip.
MIT License
1.27k stars 98 forks source link

Use nproc(1) to determine number of make jobs #12

Closed jwilk closed 8 years ago

jlsutherland commented 8 years ago

Hi @jwilk, thanks for the PR. A quick thought.

Though I like the idea of speeding up the build, I'm not sure how I feel about eating up all of the user's avail procs by default. It might result in surprising lag.

Further, inexperienced users might experience greater difficulty with the quick-install script.

What is your intuition re: these points?

jwilk commented 8 years ago

I submitted the PR because the current -j4 was particularly bad choice on my single-core, memory-starved machine. But I appreciate that using all CPU cores might not necessarily be a good idea either. Feel free to close the PR.

jlsutherland commented 8 years ago

That makes sense. Thank you again :).

If you don't mind me asking, what is the box? RPi equivalent?