Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Widget: Increase performance for large sortable/draggable collections#2313

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mgol wants to merge1 commit intojquery:main
base:main
Choose a base branch
Loading
frommgol:perf-large-sortable

Conversation

@mgol
Copy link
Member

Fixesgh-2062

this._destroy();
$.each(this.classesElementLookup,function(key,value){
that._removeClass(value,key);
that._removeClass($(Array.from(value)),key);
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not that worried about this since it's indestroy. That shouldn't happen too often.


// Clean up events and states
this.bindings.off(this.eventNamespace);
$(Array.from(this.bindings)).off(this.eventNamespace);
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not that worried about this since it's indestroy. That shouldn't happen too often.

// below.
elements=$(currentElements.get());
this._removeClass(currentElements,classKey);
elements=$(Array.from(currentElements));
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We re-wrap here, but the previous code was already creating a new jQuery object, so it shouldn't be worse than before.

Also, I don't understand the comment above; how would we lose the reference here? It's already in thecurrentElement object, that wouldn't just disappear...

@mgolmgol added this to the1.15.0 milestoneApr 4, 2025
@mgolmgolforce-pushed theperf-large-sortable branch from67457c4 to47244bfCompareApril 4, 2025 08:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@mellowaremellowaremelloware approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

@mgolmgol

Milestone

1.15.0

Development

Successfully merging this pull request may close these issues.

Performance issue in sortable widget with long lists

2 participants

@mgol@melloware

[8]ページ先頭

©2009-2025 Movatter.jp