CloudMade/Leaflet — pull request #458 by mortenbekditlevsen (2012-02-02 14:23:39+00:00)
Title: Option for reusing tiles added to TileLayer

I don't know if this is of general public interest, but for our application, reusing existing tiles is substantially faster than allocating memory for new ones. This of course depends on the amount of memory available - and the amount of scrolling you do. So feature-wise it is similar to the 'unloadInvisibleTiles' option, but it ought to be a bit faster since it does not need to free memory and acquire a similar memory chunk again.

a '_resetTile (tile)' prototype has been added in case a subclass of TileLayer needs to do something special to clean up before a possible reuse.