Xreader is slow to open, and to update the view of, certain pdf books

Open
#508 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Reproduce the slowdown in Xreader 2.8.3 on Mint 20.1 Cinnamon using The Greek View of Life and Organic Gardening, comparing opening and scrollbar navigation times. Investigate why the first PDF is slower despite being smaller; done means opening and view refresh times are considerably shorter for documents of that type.

Written by the indexing model from the issue text.

Description

 * Xreader version 2.8.3
 * Distribution - Mint 20.1 Cinnamon

Issue
Xreader is slow to load and to update the view with certain book files. This does not seem to depend solely on the size of the file, but some other formatting property.

Steps to reproduce

  1. Download The Greek View of Life from the Internet Archive (16.2 MB).
  2. Open it and when open, use the scroll bars to scroll to another page, say, half way through the book.

RESULT: The app. takes a long time to open and update the view.

  1. Now download Organic Gardening (22.6 MB).
  2. Open it in Xreader and again use the scroll bars to navigate through the document.

RESULT: Even though the latter book is considerably larger it opens very quickly.

Expected behaviour

Opening and view refresh times should be considerably shorter for documents of the first type (above) than is currently the case.

Dominant language
C
Stars
283
Forks
82
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/xreader

All issues in linuxmint/xreader

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.