--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r4sBHWvEtcGcS%3D3FZt1%3DQtsNH-wZHUEs45zkdtuo%2BxDAw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABg10jyYkTEgC3-Xr5kw8PSP6S5wOzaV4UOStd1bO4ANmS3JVg%40mail.gmail.com.
I second your personal opinion. :) Find-in-page can be very, very frustrating (but maybe I am used to the pre-2019 experience and tried not to depend on it ever since).☆PhistucK
On Wed, Nov 27, 2019 at 4:25 PM Kentaro Hara <har...@chromium.org> wrote:
My personal opinion is: use non-idle tasks with e.g., 10 ms of chunks without any delay.When a user is using find-in-page, the user's expectation is to get the result asap. Prioritizing the find-in-page tasks makes a lot of sense to me :)
On Wed, Nov 27, 2019 at 10:13 PM 'Rakina Zata Amni' via blink-dev <blin...@chromium.org> wrote:
Hi all,--Currently find-in-page is done during idle time with idle tasks, and done in chunks of (layout) blocks until the idle time runs out (we've reached the IdleDeadline time), continuing the remaining blocks on the next idle period, or 100 ms later to ensure that find-in-page doesn't take too long. This approach is somewhat new (landed early 2019), previously we always do find-in-page in 100ms chunks.With the new approach, find-in-page on large documents won't block other tasks for too long, adding matches gradually to the total match count. The downside is, on pages that are always busy/doesn't have idle time, find-in-page will take a long time. Maybe this is even more annoying when the search text has only a few matches (or even just one), because it might take a long time for the user to get something meaningful. We've also noticed an oversight: while we do have the 100ms timeouts (we will do at least one find-in-page task per 100ms), we will only do one layout block for that task because apparently we have exactly 0ms of idle time during those timeouts. So for large pages that have no idle time at all (not sure how often this is in real life, but for example the HTML Spec on a slow debug build is hitting this on my workstation), we will do just one block per 100ms.The fix for this is technically easy: just do more than one block per 100ms - I tried changing it so that we do at least 10ms of work per 100ms, and find-in-page seems to be more usable that way. However, I'm not sure if this is the best approach? For example, fergal@ suggested 1ms of work per 10ms so that we don't block too long. Should we look at other possibilities too, such as doing once each animation frame? Should we do longer chunks or more smaller chunks? How common is it for pages that have no idle time? Should we reconsider having higher priority for find-in-page tasks? Or wilder ideas?I don't really know how to say whether one approach is better than the other here, so I'm wondering if there's anybody with an opinion on this or find-in-page in general on this list. If so, please let me know what you think :)--Regards,Rakina
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r4sBHWvEtcGcS%3D3FZt1%3DQtsNH-wZHUEs45zkdtuo%2BxDAw%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r4sBHWvEtcGcS%3D3FZt1%3DQtsNH-wZHUEs45zkdtuo%2BxDAw%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABg10jyYkTEgC3-Xr5kw8PSP6S5wOzaV4UOStd1bO4ANmS3JVg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/38938ba9-873e-4f0d-b4ef-91e14649f64d%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r4sBHWvEtcGcS%3D3FZt1%3DQtsNH-wZHUEs45zkdtuo%2BxDAw%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABg10jyYkTEgC3-Xr5kw8PSP6S5wOzaV4UOStd1bO4ANmS3JVg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/38938ba9-873e-4f0d-b4ef-91e14649f64d%40chromium.org.
Correction Safari displays number of matches like "2 matches" without active match and "Not found".
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r4sBHWvEtcGcS%3D3FZt1%3DQtsNH-wZHUEs45zkdtuo%2BxDAw%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABg10jyYkTEgC3-Xr5kw8PSP6S5wOzaV4UOStd1bO4ANmS3JVg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/38938ba9-873e-4f0d-b4ef-91e14649f64d%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACQRE%2BQ-rcNWo%3Dmbv%3DXRSccgrbpTrKq3p-ZbtbnUq13P_jiwzA%40mail.gmail.com.