google/trace-viewer — pull request #620 by kphanee (2014-09-26 09:23:31+00:00)
Title: Avoid multiple calls to _extractTracesFromHTML in Trace2HTMLImporter.

For each HTML import, we trigger multiple calls to _extractTracesFromHTML.
In Trace2HTMLImporter.canImport() and in Importer.extractSubtraces().
We can instead cache the value of subtraces also during canImport and
return the cached value during extractSubtraces().