(#2890) - WIP- incremental hex parse calculation #2899
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@calvinmetcalf I think your expertise would be very useful here.
Background: we need to pull hex binaries out of WebSQL using the SQLite
HEX()function because WebSQL has a fun bug. For the record, I recently filed the bug on Chromium and Safari.This is what's causing the DOM to freeze. The proof is in this bl.ocks.org. You can run the Chrome profiler and see that
parseHexString()is blocking.I've coded up this fix, which blocks the DOM a lot less, but apparently the function is still blocking quite a bit according to the Chrome profiler. And the GIFs are still jerky. @calvinmetcalf I'm not sure what else I could be doing; I even did a jsperf to verify my hex parser. Any ideas?