setSpanIndexCacheEnabled

open fun setSpanIndexCacheEnabled(cacheSpanIndices: Boolean)(source)

Sets whether the results of getSpanIndex method should be cached or not. By default these values are not cached. If you are not overriding getSpanIndex with something highly performant, you should set this to true for better performance.

Parameters

cacheSpanIndices

Whether results of getSpanIndex should be cached or not.