DevTools: Cache parsed colors to speedup flamechart GL geometry setup.
Color.parse is quite expensive, resulted in 7 seconds wait for a million entries. We can just cache parsed colors provided there are just few dozens of them. Also move gl.get* operations out of the main draw routine as they known to be expensive. BUG=874116 Change-Id: I6b02210a1dd1d2b9e8ef9d9931ee3eebd0087872 Reviewed-on: https://chromium-review.googlesource.com/1178579Reviewed-by:Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Cr-Commit-Position: refs/heads/master@{#583797}
Showing
Please register or sign in to comment