2 ms·
> Or do developers just assume that their UI code won't ever need to scale to large numbers of items? If you have enough items that a copy of all attributes is
by viraptor 7y ago
> Or do developers just assume that their UI code won't ever need to scale to large numbers of items?
If you have enough items that a copy of all attributes is noticeable to the user, the user will never realistically see those items. (We'd be talking about thousands of them minimum) Or alternatively you're loading A LOT of data per item. Either way, the issue in almost every single case is not that the copy takes too long.
I mena, there are edge cases like an endless list of small items (twitter?) which someone scrolls for a long time and then makes a modification. But then you should know it's potentially a REALLY long list you need to handle.