Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

appState.sites sort takes a long time (Every navigation +200 ms [w/ 10K bookmarks]) #9427

Closed
ayumi opened this issue Jun 13, 2017 · 1 comment

Comments

@ayumi
Copy link
Contributor

ayumi commented Jun 13, 2017

Sorting sites takes 200 ms (w/ 10K bookmarks) and we do it on every navigation (sitesReducer APP_ADD_SITE).

  • Did you search for similar issues before submitting this one?
    Yes

  • Describe the issue you encountered:
    Navigation is slow. I noticed the APP_ADD_SITE event took a while to run in reducers.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    MacOS

  • Brave Version (revision SHA):
    849f5fd

  • Steps to reproduce:

    1. Load in 10K bookmarks
    2. Log run time of sitesReducer APP_ADD_SITE.
  • Actual result:
    Sort every time (+200 ms)

  • Expected result:
    Re-sorting should be unnecessary unless site.order has changed.

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    Import 10K bookmarks

  • Is this an issue in the currently released version?
    Yes

  • Can this issue be consistently reproduced?
    Yes

  • Any related issues:
    Application slowness (when opening new tabs, loading a website) #8541

@ayumi ayumi added the perf label Jun 13, 2017
@ayumi ayumi self-assigned this Jun 13, 2017
@ayumi
Copy link
Contributor Author

ayumi commented Jun 13, 2017

noted by @darkdh to be added by 8538025

ayumi added a commit that referenced this issue Jun 13, 2017
Because both operations retain sites iteration order.

Fix #9427
@bsclifton bsclifton added this to the 0.17.x (Beta Channel) milestone Jun 14, 2017
bridiver pushed a commit that referenced this issue Jun 14, 2017
Because both operations retain sites iteration order.

Fix #9427
bridiver pushed a commit that referenced this issue Jun 14, 2017
Because both operations retain sites iteration order.

Fix #9427
This was referenced Jun 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants