I want to speed up the first page display.

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
user-benq
User
Posts: 3
Joined: Tue Jan 07, 2020 11:26 pm

I want to speed up the first page display.

Post by user-benq » Wed Jan 08, 2020 1:43 am

Drawing the page to display again is fast.
Drawing the page to display for the first is slow.
Is there a way to draw quickly from the first display?

I tried to optimize the PDF, but there is a difference between the speed of the first display and the speed of the second display.
So let me know another way.

spcifcation
windows10 home
Corei3-7130U
RAM:20GB

System memory :10GB available
Cache maximum storage period :maximum

Timur Born
User
Posts: 680
Joined: Tue Jun 26, 2012 1:50 pm

Re: I want to speed up the first page display.

Post by Timur Born » Wed Jan 08, 2020 9:18 am

That would need Editor to create a search index or offline cache (that retains content between sessions), which unfortunately it does not offer.

user-benq
User
Posts: 3
Joined: Tue Jan 07, 2020 11:26 pm

Re: I want to speed up the first page display.

Post by user-benq » Wed Jan 08, 2020 11:14 am

Timur Born
Thanks for answering.
I wanted those features.
But I am sorry that there is not.
As a test, I created a full cache using a 500 page PDF.
Then 7GB of memory was used. So this feature may not be useful.

Timur Born
User
Posts: 680
Joined: Tue Jun 26, 2012 1:50 pm

Re: I want to speed up the first page display.

Post by Timur Born » Wed Jan 08, 2020 11:19 am

Well, a cache file of 7 gb size could be written to disk. You would then trade disk read/write for CPU processing. A limited version that only caches the first two pages might be useful as a compromise. But even then we are still waiting for background pre-processing to be implemented in Editor, so it all hangs in the air.

Timur Born
User
Posts: 680
Joined: Tue Jun 26, 2012 1:50 pm

Re: I want to speed up the first page display.

Post by Timur Born » Wed Jan 08, 2020 10:03 pm

One workaround would be to run Editor in a virtual machine and then suspend and resume said machine. Of course this uses extra resources, but once my extra 16 gb of memory arrive I will give this a try.

User avatar
Paul - Tracker Supp
Site Admin
Posts: 4988
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: I want to speed up the first page display.

Post by Paul - Tracker Supp » Wed Jan 08, 2020 10:28 pm

Hi guys,

Timur is right in that we do not cache the files, and on closing the file we save nothing for use next time. Windows on the other hand can cache the document.

At the end of the day, it is going to take the same amount of time to open a document from cache as from a local disk since the cache is most likely on disc anyway as Timur pointed out.

I spend a lot of time using Virtual Machines, and even with 64GB RAM on my workstation with SSD drives it is still a much slower process to suspend/resume a VM than the delay typically seen in opening a PDF. That is the case whether I am using VMWare, Hyper-V, or qemu/libvirt.

The real question here would be, I think, how does the Editor compare to it's competitors in this area?
_________________
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com

user-benq
User
Posts: 3
Joined: Tue Jan 07, 2020 11:26 pm

Re: I want to speed up the first page display.

Post by user-benq » Wed Jan 08, 2020 11:58 pm

I see, there is such a way.
I purchased a license and performed a PDF optimization. As a result, it became possible to browse comfortably.
I want developers to implement a function that reads several pages before and after the PDF.
Thank you for your reply.

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 3006
Joined: Wed Jan 03, 2018 6:52 pm

Re: I want to speed up the first page display.

Post by TrackerSupp-Daniel » Thu Jan 09, 2020 12:39 am

Hi all,

Glad to hear you've found a way to browse comfortably!

Have a great day,
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Timur Born
User
Posts: 680
Joined: Tue Jun 26, 2012 1:50 pm

Re: I want to speed up the first page display.

Post by Timur Born » Thu Jan 09, 2020 12:06 pm

Paul - Tracker Supp wrote:
Wed Jan 08, 2020 10:28 pm
At the end of the day, it is going to take the same amount of time to open a document from cache as from a local disk since the cache is most likely on disc anyway as Timur pointed out.
I do not concur in all case. Most of my recreational PDF files contain several images on each single page. Since images are still rendered by a single CPU thread there is delay even on a 5 Ghz 9900K processor on image heavy pages. Single large images seem to be worse than many small ones.

Pre-Loading pre-processed cache data from M.2 SSD happens at a rate between 50 (4k random, queue 1) to over 3000 mb/s (sequential, queue 8 ) on my system. If pre-processed (image) data was read from cache for all pages in the background (preferably up to 8 pages concurrently) then I would not have to wait for pages to build up. Add the cached text/search (not even a real index) and we would get instant search results on top of that.

Here is an example:

642 pages of an image heavy PDF take up nearly 8 gb of memory when all pages are cached to RAM. Flipping through all 642 pages without pre-processing takes 1:15 min, flipping through the memory cached pages only takes 22 seconds. Reading a single huge chunk of 8 gb data from M.2 SSD at 3 gb/s takes less than 3 seconds. Of course this only applies to my system.

But what we really need is pre-processing of forward and backward pages and text (for quicker search). Caching would not have much of an impact then anyway.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13861
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: I want to speed up the first page display.

Post by Tracker Supp-Stefan » Thu Jan 09, 2020 12:22 pm

Hi Timur,

Thanks for your feedback! Indeed preparing the previous and next few pages in some way would have noticeable effect on the way PDFs files are seen and used in our products, but this is not a trivial task - so while we do have Feature requests for pre-rendering - I do not currently have estimates if or when such a feature will be available.

Regards,
Stefan

Post Reply