rlottie: refactor to use a local arena allocator for shadow tree creation
authorsubhransu mohanty <sub.mohanty@samsung.com>
Mon, 4 Nov 2019 01:11:23 +0000 (10:11 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 11 Nov 2019 20:58:15 +0000 (05:58 +0900)
commit1d8d3d38723d2f2234bf0b1ee6337b2a2f330030
treed3707864255bb408acfd85a6cd4237deb4e9e394
parent6c8feaf49be531c422f1b4a48684e91f88eab264
rlottie: refactor to use a local arena allocator for shadow tree creation

This usecase is best suitable for local arena allocator as we have a fixed number
of objects to create and they all gets deleted at once. so by keeping a allocator
in the composition and use it to create all the objects using it will basically
flattened the memory layout of the shadow tree as all the memory comes from the one
memory allocator pool.
This improves the bencmark performance by 5%.
src/lottie/lottieitem.cpp
src/lottie/lottieitem.h