Optimize type-info-impl and type-registry-impl 35/191935/6
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Thu, 25 Oct 2018 17:00:42 +0000 (18:00 +0100)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Tue, 30 Oct 2018 13:28:48 +0000 (13:28 +0000)
commitaee2350a06fac17860817a0e84ff97a4553dbbaa
treec948a630946566e79580a9565d19ce24bd1dfcd7
parent647f5b051fe0930336dd202bd41084201c5de6b9
Optimize type-info-impl and type-registry-impl

store base typeinfo pointer instead of resolving it every time a method is called.
this is safe as type info cannot change after registration.
store intrusive pointers to type-info-impl instead of handles as they are considerably cheaper

In dali-demo startup reduced the count of calls:
Before:
TypeRegistry::GetTypeInfo 2409
TypeInfo::TypeInfo 3006

Change-Id: Idd53378ca15cc0f690597dd7a5855cb5986a6785
dali/internal/event/common/object-impl.cpp
dali/internal/event/common/type-info-impl.cpp
dali/internal/event/common/type-info-impl.h
dali/internal/event/common/type-registry-impl.cpp
dali/internal/event/common/type-registry-impl.h
dali/public-api/object/base-object.cpp
dali/public-api/object/type-registry.cpp