View Single Post
Old 01-08-2019, 09:44 PM   #1662
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by abe1 View Post
#1 Where is the location settings file of K2pdfopt in windows?

#2 Any way to make the conversion process any faster? Only 50% of CPU osage most of the time..
#1. k2pdfopt stores its settings in environment variables.

#2. The only place where I could easily apply parallelization/multithreading was with OCR, which I did (starting with v2.4x). The rest of the operation is very sequentially dependent and therefore difficult to do in parallel. I could have k2pdfopt do chapters of the book in parallel, for example, since they would logically each start on a fresh output page, but I would need to add some kind of library functionality to merge multiple PDF files or internal structures together, which I don't presently have, and I would have to implement some kind of "new chapter" detection mechanism (or force the user to specify the pages). There was a past discussion on this in this thread.

For now: (1) k2pdfopt generates output far faster than it can be read, (2) the user can use the -p option to manually run k2pdfopt in parallel on different sections of a source file and later manually join them, and (3) k2pdfopt is easily batched to run on multiple files overnight. Therefore adding more multithreading is a low priority for me. Of course, k2pdfopt is also open source, so you are welcome to contribute!
willus is offline   Reply With Quote