minor(?) glitch/inaccuracy when searching webpage text

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
mortalwombat

minor(?) glitch/inaccuracy when searching webpage text

Unread post by mortalwombat » 2019-04-08, 19:03

windows x64, PM 28.4.0, keyboard refresh rate set to maximum of about 30 hertz.
on any page with a good amount of text, like, a few pages of text or more, hit control-F to search for a common character like "a" or "e", which will appear hundreds of times on the page (over 100, but preferably not over 1000, because apparently that is the limit on matches that PM will report that it found), and it will highlight a first result, as normal, and will display something like "1 of 847 matches", as normal, but something abnormal will happen if you hold down the F3 key, to quickly cycle through all the results, each highlighted one by one at a rapid speed, with Windows keyboard refresh rate maxed out around 30 hertz; then the "847" somehow/somewhy changes to a smaller number which is always a multiple of 100, like for example "1 of 500 matches", "1 of 700 matches", "1 of 600 matches", etc. you can sit and watch it skip through multiples of 100. then if you let go of F3, I think it always corrects itself back to "847", but I'm not sure if it's always or just sometimes. then if you just hit F3 again only once, it will always correct itself back to "847". holding down F3 again, it'll go back to unpredictable multiples of 100 again, instead of the correct number of "847".

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35633
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: minor(?) glitch/inaccuracy when searching webpage text

Unread post by Moonchild » 2019-04-08, 21:04

This is an unfortunate side-effect of asynchronously updating these statistics. The high speed of repeated searches can, in such a case, fire off a new search while the update would still be in progress (and counting a large number of matches simply takes some computing time) and therefore "skip a beat". The count update will then be inaccurate as a result. With the current implementation of the findbar, this is unavoidable.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked