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)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 13 Nov 2019 00:44:45 +0000 (09:44 +0900)
commit623dbfaaa4f0f73487edcd44c7470be60b271ed1
treedf077a7f0a02bdc65283a82979e4d8a5fe12b0fa
parent1df08c4d82656c3e56487264691744d6c9071609
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