-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return size of PDF page document #1612
Conversation
This is a rough approximation to be used by the caching mechanism.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Hm, I guess that change causes this test to fail? koreader-base/spec/unit/koptcontext_spec.lua Line 203 in e2778f3
|
I'm not sure why. I don't have a working test setup, but executing the test manually in |
That test is flaky (because of possibly uninitialized memory). |
Did you pinpoint exactly where the issue lies? |
I told the tests to run again and they seem to have passed, so that would indeed seem to be slightly flaky. I'm not sure I've ever noticed it flaking before, or perhaps I just tune it out when I know it can't possibly be related which may not necessarily be the case here although it's unlikely. |
Not yet. |
It's been borked for years ;). It used to be way way worse because at least one of the copies used to be more obviously borked (it wasn't null terminated), but it's still random today (and I think that's one of the rare "random" test failure that I could ever actually reproduce locally; but it's been a while since I tried [the fact that it requires setting up tesseract to run doesnt help ;p]). So, yeah, something's fishy with that one, for sure. |
See #1613. |
Updating the selection queries the same page tens of times per second. This prevents KOReader from keeping up with high-frequency input event streams. Fixes #10443. Relies on koreader/koreader-base#1612.
This is a rough approximation to be used by the caching mechanism. I assume one byte per character and a small constant size for coordinates. I don't know how much overhead the table and individual structures require.
This change is