1) Replace Promise.resolve().then(...) with queueMicrotask().
(The queueMicrotask API has been implemented in all major browsers for 5-6 years now).
2) While profiling, I noticed a slight overhead when creating a new instance of TextDecoder for every tile while parsing the FeatureTable. Moving it out of the function scope completely eliminates its execution time when profiling.
1) Replace
Promise.resolve().then(...)
withqueueMicrotask()
. (The queueMicrotask API has been implemented in all major browsers for 5-6 years now). 2) While profiling, I noticed a slight overhead when creating a new instance ofTextDecoder
for every tile while parsing the FeatureTable. Moving it out of the function scope completely eliminates its execution time when profiling.