Join Slack
Powered by
not strictly Kotlin only but is there any issue wi...
# android
g
ghosalmartin
06/04/2019, 12:59 PM
not strictly Kotlin only but is there any issue with not recycling TypedArrays if it can be helped, will they be gc down the line either way?
g
gildor
06/04/2019, 1:17 PM
If there is no recycled typed arrays in pool, than new will be created instead of reusing existing one. Also it will never be garbage collected
gildor
06/04/2019, 1:17 PM
This is object pool pattern, that allows to avoid allocations
Open in Slack
Previous
Next