Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve menu performance #81

Merged

Conversation

thewilkybarkid
Copy link
Contributor

Having tried out the menu with a large menu (5,000 items), both Drupal and the Project Light JavaScript are beyond slow. (Refs #40)

The latter's out of scope for this repo, but the former needs to be resolved (or a least improved, a large amount of data will always be large).

It looks like most of the problems are to do with the RecursiveArrayObject. It turns out that this isn't actually needed, and this change dramatically improves performances (note that it's still a few seconds to generate the page, plus nearly 10 in the JS, so I don't think that large menus can ever be displayed all in one go).

I'm still testing this to make sure that it doesn't introduce regressions, and there might be other areas that can be improved.

@thewilkybarkid
Copy link
Contributor Author

The change for #72 should also be reverted to allow for cases where the whole menu should not be shown (note the doc change shouldn't be, as for the vast majority of cases the whole tree is not that big).

@thewilkybarkid thewilkybarkid changed the title [WIP] Improve menu performance Improve menu performance Apr 23, 2015
thewilkybarkid added a commit that referenced this pull request May 11, 2015
@thewilkybarkid thewilkybarkid merged commit 54d1626 into misd-service-development:master May 11, 2015
@thewilkybarkid thewilkybarkid deleted the menu-performance branch May 11, 2015 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant