This caches user-defined JS functions for the scene (e.g. for filters, colors, etc.) by their unique source code. This can lead to substantial decrease in the number of functions that have to be compiled when using globals. On Mapzen/Nextzen styles, the reduction is anywhere from 40% (on Bubble Wrap) to almost 300% (on Walkabout). Additionally, the cache is cleared when a new scene is loaded, so these functions can be freed.
This caches user-defined JS functions for the scene (e.g. for filters, colors, etc.) by their unique source code. This can lead to substantial decrease in the number of functions that have to be compiled when using globals. On Mapzen/Nextzen styles, the reduction is anywhere from 40% (on Bubble Wrap) to almost 300% (on Walkabout). Additionally, the cache is cleared when a new scene is loaded, so these functions can be freed.