Optimize HitTestWithinLayer (20% faster HitTest).
authorArtem Dergachev <dergachev.a@samsung.com>
Thu, 17 Apr 2014 14:29:41 +0000 (18:29 +0400)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 15 May 2014 11:38:49 +0000 (12:38 +0100)
commit308967f3c2a3d7942a40e8dbe6463a85ce0cb389
tree5bb6af7eb699ff158be0b95a8e79a36741268710
parent49009baf61429409ca9c9a846111c2ef4e801c2c
Optimize HitTestWithinLayer (20% faster HitTest).

Whenever a temporary HitActor structure instance is created, constructor and destructor functions
are called for its .actor field.

In certain scenarios this results in creating and instantly deleting around 1000 dummy Actor
objects during a single call of HitTest().

HitTestWithinLayer is an important bottleneck in such scenarios, second only to
UpdateNodesAndAttachments (depending on the touchevent:framerate ratio).

This change makes the test around 20% faster and additionally reduces power consumption.

Change-Id: Iad9f59f39f6229516f036cc49025c2e0ef72ad3d
dali/internal/event/events/hit-test-algorithm-impl.cpp