ScratchData LogoScratchData
Back to TheLogFather's profile

SPD: recreate long list rather than insert

THTheLogFather•Created December 25, 2014
SPD: recreate long list rather than insert
62
34
1205 views
View on Scratch

Description

Speed test demo -see studio for more speed test demos: http://scratch.mit.edu/studios/795672/ ------- This one shows that inserting into a list can be quite slow, and that if you have lots of things to insert, it could well be quicker to actually copy it all into a temporary list, and then rebuild it all from scratch with the extra items, so that you only ever use "add", never "insert" - even if it means you end up adding more than twenty times as many items as you would've inserted!

Project Details

Project ID41196030
CreatedDecember 25, 2014
Last ModifiedAugust 13, 2015
SharedDecember 26, 2014
Visibilityvisible
CommentsAllowed