Fix interface to avoid heap allocation. 63/244663/1
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 23 Sep 2020 04:44:50 +0000 (13:44 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 23 Sep 2020 04:45:01 +0000 (13:45 +0900)
commitd8fcecebd607195e6bb7d069d98f45209deffa16
tree9ab18b0ee01bcfdfdfda0399c9bebd0084175011
parent0741b58e8e53e8ea7b897c2e21aac6b4da733192
Fix interface to avoid heap allocation.

- take Property::Value and std::string by value.
- use vector::push_back(T&&) version to avoid copy.
- this patch reduces 300,000 memory allocation.

Change-Id: I2da12f4b18cef5967ada18d6c9c58d2bc406d8ea
dali/internal/event/animation/animation-impl.cpp
dali/internal/event/animation/animation-impl.h
dali/internal/event/common/object-impl.cpp
dali/internal/event/common/object-impl.h
dali/internal/event/common/property-metadata.h
dali/public-api/animation/animation.cpp