setSpanGroupIndexCacheEnabled

open fun setSpanGroupIndexCacheEnabled(cacheSpanGroupIndices: Boolean)(source)

Sets whether the results of getSpanGroupIndex method should be cached or not. By default these values are not cached. If you are not overriding getSpanGroupIndex with something highly performant, and you are using spans to calculate scrollbar offset and range, you should set this to true for better performance.

Parameters

cacheSpanGroupIndices

Whether results of getGroupSpanIndex should be cached or not.