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 user list rendering perf by not resorting after every add (#2… #1679

Merged
merged 1 commit into from
Oct 10, 2016

Conversation

MorrisJobke
Copy link
Member

…6282)

The call to UserList.add() was wrong and was passing "user.lastLogin"
as the sort argument which would cause the list to be resorted over and
over again for every added item after loading the next page of users.

Downstream of owncloud/core#26282

I tested this with LDAP and it works.

cc @blizzz @nickvergessen @rullzer

…6282)

The call to UserList.add() was wrong and was passing "user.lastLogin"
as the sort argument which would cause the list to be resorted over and
over again for every added item after loading the next page of users.
@nickvergessen
Copy link
Member

👍

@rullzer
Copy link
Member

rullzer commented Oct 10, 2016

LGTM

@rullzer rullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 10, 2016
@blizzz
Copy link
Member

blizzz commented Oct 10, 2016

👍

@blizzz
Copy link
Member

blizzz commented Oct 10, 2016

Actually, the other true in line 401 seems debateable and thus the whole sort parameter in the add() method.

@rullzer rullzer merged commit 1f0bc69 into master Oct 10, 2016
@rullzer rullzer deleted the downstream-26282 branch October 10, 2016 20:10
@MorrisJobke
Copy link
Member Author

Actually, the other true in line 401 seems debateable and thus the whole sort parameter in the add() method.

@blizzz What do you mean by that?

@blizzz
Copy link
Member

blizzz commented Oct 11, 2016

Actually, the other true in line 401 seems debateable and thus the whole sort parameter in the add() method.

@blizzz What do you mean by that?

Meant another line. Will open another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants