parallax / ddt

DDT (Drag and Drop Tables) is a library that adds drag and drop reordering support to HTML tables.
MIT License
5 stars 0 forks source link

Speed up by keeping an internal track of the value orders #14

Closed nathggns closed 10 years ago

nathggns commented 10 years ago

Right now whenever you swap a row, the order array is recalculated (by selecting all rows and mapping over them).

This could become a bottleneck for large tables. We should look at keeping an internal array of the values and swapping the values when swapping rows.

Potential issues with this

nathggns commented 10 years ago

Going to cancel this, as it has too many issues (what if a row changes its value). We can readdress this later on if speed becomes an issue.