Added small buffer optimization to Property::Value. 43/244843/6
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 25 Sep 2020 02:33:40 +0000 (11:33 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 6 Oct 2020 09:15:55 +0000 (09:15 +0000)
commit8c1cd416faba9b06a88d77a7e2c9de7c5d92ca09
tree48cccff38e5548b924ce04309271c2a7545cf123
parentd3d984fe4e1cc093b0611c8285594da121f4ae74
Added small buffer optimization to Property::Value.

With SBO optimization we don't need to allocate memory
for the Pimpl pointer as we will be creating the object
inplace in th Storage buffer.
After this change the Property::Value size will be 16byte
instead of 8. I think the overhead is minimal comparing to
the number of allocation this class does in a dali application.

Note: with the SBO and union trick the implementaion is little
bit complex than before. but as this class is core for property
and animation and used every where. the complexity is justified
in my opinion.

Change-Id: Ibe14fe92f15c2ab93395c9731bd1fca902e98259
dali/public-api/object/property-value.cpp
dali/public-api/object/property-value.h