sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.72k stars 1.73k forks source link

Slow loading on clicking items in ToC #4584

Open user1823 opened 1 month ago

user1823 commented 1 month ago

SumatraPDF version

Describe the bug When I click the items in the ToC in the attached PDF file, Sumatra takes too long to load the page.

File that reproduces the problem out-3.pdf

chrisjj commented 12 hours ago

Here, instant. What is "too long"?

user1823 commented 12 hours ago

It takes about 1-2 seconds for me.

GitHubRulesOK commented 10 hours ago

Such modified files have usually been corrupted by pirating the source via PDFtk/iText which I see internally.

Supposedly the source version had 3 times as many pages ? (752 pages Date : 2019)

So yes its almost upto 5 seconds

Slow rendering: 185.42 ms, page: 1 in 'C:\Users\K\Desktop\Apps\pdf\SumatraPDF\out-3.pdf'
uitask::WndProcTaskDispatch: will execute 'TaskGoToTocTreeItem', func 0x00AB5658
uitask::WndProcTaskDispatch: did execute, will delete func 0x00AB5658
uitask::WndProcTaskDispatch: will execute 'TaskGoToTocTreeItem', func 0x00AB5698
Slow rendering: 4978.51 ms, page: 233 in 'C:\Users\K\Desktop\Apps\pdf\SumatraPDF\out-3.pdf'
uitask::WndProcTaskDispatch: did execute, will delete func 0x00AB5698
uitask::WndProcTaskDispatch: will execute 'TaskGoToTocTreeItem', func 0x00AB5780
uitask::WndProcTaskDispatch: did execute, will delete func 0x00AB5780
Slow rendering: 3023.66 ms, page: 111 in 'C:\Users\K\Desktop\Apps\pdf\SumatraPDF\out-3.pdf'