huge inefficiency when side pane is initially visible

Bug #88553 reported by Daniel Frey
2
Affects Status Importance Assigned to Milestone
Evince
Fix Released
High
evince (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

How to reproduce:

Open a small PDF with Evince. Activate the side pane (F9), set it to show the index. Close Evince.

Now open a large PDF, e.g. the PostgreSQL documentation (~14MB, ~1700 pages).

What happens is: It shows the side pane immediately on startup, showing "Loading..." for ~60s with 100% CPU load.

After "Loading..." was replaced by the real index, close the side pane (F9), then close Evince.

Reopen the PDF. Now it doesn't take up much CPU and only a second after the window was opened, you can press F9 to view the side pane / index. The ~60s of 100% CPU load are not required, they only occur if the side pane is initially visible.

ProblemType: Bug
Architecture: i386
Date: Wed Feb 28 00:49:24 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/evince
Package: evince 0.7.2-0ubuntu2
ProcCmdline: evince file:///home/frey/Desktop/postgresql-8.2-A4.pdf
ProcCwd: /home/frey
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
Uname: Linux fiasko 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux

Revision history for this message
Daniel Frey (d-frey) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Don't use the preview sidebar if you don't want it, that's an user choice. Making the preview requires CPU, it's a low priority task though and doesn't block the PDF rendering so that's not a problem

Changed in evince:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Rejected
Revision history for this message
Daniel Frey (d-frey) wrote : Re: [Bug 88553] Re: huge inefficiency when side pane is initially visible

Sebastien Bacher wrote:
> Thank you for your bug. Don't use the preview sidebar if you don't want
> it, that's an user choice. Making the preview requires CPU, it's a low
> priority task though and doesn't block the PDF rendering so that's not a
> problem

Please reconsider your decision to Reject this, as I think it was based
on a misunderstanding of what I wrote.

I wasn't talking about the preview, I was talking about the index. And
depending on how you use the program, the same feature/result uses
either ~60s of CPU time or less than 1s. This IMHO clearly shows that
the CPU time in the inefficient code path is wasted on something which
has no use and is not required to show the index.

If you need more information (or want me to try to explain it in a
different way, in case you think this might help), let me know.

Thanks,

Daniel

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've forwarded the request upstream: http://bugzilla.gnome.org/show_bug.cgi?id=416447

Changed in evince:
status: Rejected → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the bug:

 evince (0.7.2-0ubuntu3) feisty; urgency=low
 .
   * debian/patches/80_from_upstream_index_dont_use_cpu.patch:
     - patch from upstream, don't use cpu when displaying the index
       (Ubuntu: #88553)

Changed in evince:
status: Confirmed → Fix Released
Changed in evince:
status: Unknown → Fix Released
Changed in evince:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.