optimization: move rare propery field to extra structure to minimize memory footprint...
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 1 Aug 2019 01:52:12 +0000 (10:52 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 12 Aug 2019 08:30:39 +0000 (17:30 +0900)
commitc4dc9a64ecb3b8287be7d487d1d910d96c454ba4
treee308427ee025d2b96c9afe6846a268c27106da12
parent7c6651d617ec5e46021fb8f2adb2389d6709eb22
optimization: move rare propery field to extra structure to minimize memory footprint of LOTTransformData.

- only layer transform object can have position property as separate X and Y
  by keeping them in the main structure incurs an overhead of 32 bytes to the user of the structure.
  as well as 8 byte on the book keeping (mSeparate) by moving those rarely used field along with 3D
  data to ExtraData we could trim the object size by 40bytes.

- with this patch now the object size is reduced from 128 bytes to 88bytes.
src/lottie/lottiemodel.cpp
src/lottie/lottiemodel.h
src/lottie/lottieparser.cpp