Skip to content

Optimize Data Library (d3) #203

@knutole

Description

@knutole

I have 1054 files in my data library now, and it's very slow. It seems a lot of operations require a redraw of the entire list of files.

Need to go over the code and make sure there is as little redrawing as possible.

Ops that seem to trigger full redraw:

  • clicking "Options"
  • clicking "Add layer"
  • dbclick for renaming filename
  • any random click on the file box
  • add layer to layermenu
  • rename layer
  • _onLayerEdited

screen shot 2016-04-14 at 10 52 40 am

Also, opening the Data Library for the first time is very, very slow (over a full second for me). Perhaps we can do this "behind the scenes", so that the experience is much faster for end-user.

Need to rewrite _refresh() in chrome.data.js, see comments.

References:

https://developers.google.com/web/fundamentals/performance/rendering/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions