Skip to content

ReaderView: speedup highlights drawing#12134

Merged
hius07 merged 2 commits into
koreader:masterfrom
hius07:hl-draw
Jul 6, 2024
Merged

ReaderView: speedup highlights drawing#12134
hius07 merged 2 commits into
koreader:masterfrom
hius07:hl-draw

Conversation

@hius07

@hius07 hius07 commented Jul 3, 2024

Copy link
Copy Markdown
Member

Speedup drawing highlights in cre documents a little bit.

Annotations (highlights) are sorted by position.
Positions in a highlight are sorted (start position (pos1) is before end position (pos2)).
While drawing, the iteration over all highlights can be terminated once the start position of a highlight is bigger than the current page bottom position, it means that this and all next highlights are after the current page.


This change is Reviewable

@NiLuJe NiLuJe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds sensible ;). Sweet, short & to the point ;).

@Frenzie Frenzie added this to the 2024.07 milestone Jul 5, 2024
@hius07 hius07 merged commit a7d493d into koreader:master Jul 6, 2024
@hius07 hius07 deleted the hl-draw branch July 6, 2024 12:24
Commodore64user pushed a commit to Commodore64user/KOReader_fork that referenced this pull request Aug 2, 2024
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants