summaryrefslogtreecommitdiffstats
path: root/layout/style/IncrementalClearCOMRuleArray.cpp
diff options
context:
space:
mode:
authorAndrew McCreight <continuation@gmail.com>2019-01-29 13:36:19 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-29 13:36:19 +0100
commit888fbacfe0b1c71e2d7cbd1552aca6f424dc0d93 (patch)
tree777c35c81122f36cc1c025f0f5d336680b4c8657 /layout/style/IncrementalClearCOMRuleArray.cpp
parentbabedf6c696f88734e59b63d0c6614962cc57519 (diff)
downloadUXP-888fbacfe0b1c71e2d7cbd1552aca6f424dc0d93.tar
UXP-888fbacfe0b1c71e2d7cbd1552aca6f424dc0d93.tar.gz
UXP-888fbacfe0b1c71e2d7cbd1552aca6f424dc0d93.tar.lz
UXP-888fbacfe0b1c71e2d7cbd1552aca6f424dc0d93.tar.xz
UXP-888fbacfe0b1c71e2d7cbd1552aca6f424dc0d93.zip
Increase slice time for longer running CCs.
If a CC takes too long (around 50 slices) or gets interrupted by a GC, we have to finish it synchronously, which can cause a big pause. This patch tries to avoid that by eagerly increasing the slice budget the longer a CC goes on. It linearly increases the slice time from 5ms to 40ms as we approach the halfway point of a CC (1 second), matching GC pauses, and then leaves it at 40ms.
Diffstat (limited to 'layout/style/IncrementalClearCOMRuleArray.cpp')
0 files changed, 0 insertions, 0 deletions