Decrease property registration time 36/269636/3
authorDavid Steele <david.steele@samsung.com>
Wed, 19 Jan 2022 10:17:37 +0000 (10:17 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 20 Jan 2022 15:39:55 +0000 (15:39 +0000)
commita9ce4b6d33925b61a464dbace577a0641c5c78d1
tree3a14646d8bb90f08dd18683e031a6a8f418afc3d
parent526704fa2ba73d9312b17b97949dda1fab5df6a4
Decrease property registration time

For animated custom properties attached to objects, such as uniforms
attached to visual renderers, the registration time is too long.

One of the culprits is the Object::RegisterProperty() method iterating
over all the preceding property names to ensure the uniqueness of the
property name.

In the visual case, we can remove this check, as we can ensure that
each call to RegisterProperty is only done once per uniform.

Added a method RegisterUniqueProperty (which should really be called
RegisterPropertyWithoutUniquenessCheck, but hey!) to perform the same
registration without the name lookup checks.

Change-Id: Id3b78e342415aef65f0ff121ae2c8ec4a9ec80a6
Signed-off-by: David Steele <david.steele@samsung.com>
automated-tests/src/dali/utc-Dali-Handle.cpp
dali/internal/event/common/object-impl.cpp
dali/internal/event/common/object-impl.h
dali/public-api/object/handle.cpp
dali/public-api/object/handle.h