Refactor Node class and TransformManagerproperty* class to optimize Object Size. 15/251315/3
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Tue, 12 Jan 2021 04:35:27 +0000 (13:35 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 25 Jan 2021 10:10:58 +0000 (10:10 +0000)
commit69961da169d939dc7b3d27bec60ac8ece701fc64
treeaec98a7712a8dac319c366547895debe43044dfd
parentc2506980932026dbb9116ab4cca63f6bd15864a7
Refactor Node class and TransformManagerproperty* class to optimize Object Size.

Introduced TransformManagerData and keep a pointer instead of keeping
{TxManager, TxId} pair. hence reducing 8bytes per member.

Also templated  TransformManagerPropertyVector3 based on TransformManagerProperty to
avoid storing the Property type in the class object.

This patch reduced the Node size from 976 byte to 896 byte, saving 80 bytes per object.

Change-Id: Ib608dfe73c12861277379208a8506904eedfc6e9
dali/internal/update/manager/transform-manager-property.h
dali/internal/update/manager/transform-manager.h
dali/internal/update/manager/update-proxy-impl.cpp
dali/internal/update/nodes/node.cpp
dali/internal/update/nodes/node.h