Skip to content

Highlights: page boxes cache#12768

Merged
hius07 merged 3 commits into
koreader:masterfrom
hius07:hl-boxes-cache
Nov 23, 2024
Merged

Highlights: page boxes cache#12768
hius07 merged 3 commits into
koreader:masterfrom
hius07:hl-boxes-cache

Conversation

@hius07

@hius07 hius07 commented Nov 21, 2024

Copy link
Copy Markdown
Member

(1) Always save visible highlight boxes in the current page, to be used when tapping the page.
(2) When possible ("page" view modes) save page highlight boxes, to be used when drawing already visited pages.

This

-- Getting screen boxes is done for each tap on screen (changing pages,
-- showing menu...). We might want to cache these boxes per page (and
-- clear that cache when page layout change or highlights are added
-- or removed).


This change is Reviewable

@Frenzie Frenzie added this to the 2025.01 milestone Nov 21, 2024

@poire-z poire-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, really zero comment.

Comment on lines -1054 to -1057
-- Getting screen boxes is done for each tap on screen (changing pages,
-- showing menu...). We might want to cache these boxes per page (and
-- clear that cache when page layout change or highlights are added
-- or removed).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A quick first reading, and I was sad seeing again my cherished comments disappearing - but you're actually implementing exactly this one :) So, good riddance !

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, your fruitful comments will not be forgotten!

@hius07 hius07 merged commit 47feaaa into koreader:master Nov 23, 2024
@hius07 hius07 deleted the hl-boxes-cache branch November 23, 2024 12:05
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.

3 participants