Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Selecting / deselecting large amount of items with MultiDrag plugin, extremely sluggish due to inefficient filtering process.

Open twilson90 opened this issue 7 months ago • 0 comments

I have a sortable list with hundreds of items. If I select 100 items with shift + click, there is very noticable delay... If I have 1000+ items (for testing purposes) and select all of them, it took 20-40 seconds.

The issue lies here: https://github.com/SortableJS/Sortable/blob/3696da44b57c81dbe441aa48af28b0c38f6b11e2/plugins/MultiDrag/MultiDrag.js#L347-L357

Here's a screenshot from the performance tab in developer tools: Image

With each iteration through the list it becomes slower. There are more efficient ways of doing this.

twilson90 avatar Jul 19 '25 01:07 twilson90