Chromium Code Reviews
DescriptionReland: BackgroundHTMLParser: Introduce ParsedChunkQueue to pass ParsedChunks to main thread
Fixed shutdown race issue: ParsedChunkQueue is now ThreadSafeRefCounted.
---
Before this CL, each ParsedChunk from the background parser thread was
posted as separate tasks, which wasted time in main thread on poor CPU
devices (esp. mobiles).
This CL attempts to minimize postTask by passing ParsedChunks via
introduced ParsedChunkQueue class and only using postTask to notify
that it is not empty.
BUG=540988
Committed: https://crrev.com/63f797324ae8302ddd405bf4f7b9a03ca3926f8d
Cr-Commit-Position: refs/heads/master@{#356261}
Committed: https://crrev.com/36769005e024e32de8436b573f4652e59acc2f93
Cr-Commit-Position: refs/heads/master@{#356739}
Patch Set 1 #Patch Set 2 : add missing files #Patch Set 3 : add copyright and rebase #
Total comments: 1
Patch Set 4 : rename method #
Total comments: 4
Patch Set 5 : clear parsedchunkqueue on resumefrom #
Total comments: 4
Patch Set 6 : add comment / isEmpty #Patch Set 7 : ParsedChunkQueue should be ThreadSafeRefCounted #
Messages
Total messages: 43 (14 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||