WebMemex/webmemex-extension

Performance Issues

Closed this issue · 1 comments

Performance Issues:

Import:

  • The layout is throttling 14.3% of the total time to finish an import. Which means that react is re-rendering more than it needs for some reason.

  • Also the Layout Tree which directly manipulates individual layouts is throttling 25.8% of the total load time.

  • The dispatchOnMessage callback is throttling 48.9% of the cpu as well. After some research I believe this has to do with the way that import is communicating with the client side. From what I understand import is updating a global redux state to pass the info down to the child component (is this correct?)

Some Suggestions to (maybe) help solve this issue:
  • I believe mapStateToProps is being called too many times or unnecessarily somewhere.

  • Don’t print every single url that is being saved or maybe have this as a default of hidden.

  • Make the client-side import page more visual and have a status bar that only shows changes of 25%- 50%-75%-100% instead of every single item change.

  • Use a web worker to push bigger amounts of data via transferable objects see.

Search

Getting the same with Layout Tree eating up lots of performance 50.3%… I am not sure what is causing this.

Sorry this was in the wrong depository....