evas: Avoid more calls to efl_isa in clip_set
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 20 Feb 2017 09:26:40 +0000 (18:26 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Feb 2017 01:52:40 +0000 (10:52 +0900)
commit98092224ef6265f27cc6b8fd58da8ce8cf9850d3
tree1c682e5b7b42e920715445c8a6a1b15d4111d6bc
parentd150cdfd9d3ef32cceaf2db93a57f9b4a53aaf55
evas: Avoid more calls to efl_isa in clip_set

No need to verify that the clip is an evas object unless we're
actually going to change said clipper. This has a minor effect,
removing ~10% of all calls to efl_isa (0.1% of everything).

After all those efl_isa patches the number of calls has dropped
from 1.9M (~3.05%) to ~570k (0.76%). More can still be done,
surely. Now efl_isa accounts for ~0.05% of my CPU usage according
to perf top (down from ~0.7%).

If edje uses EO APIs instead of legacy image APIs, then many of
the remaining calls will vanish.

@optimization
src/lib/evas/canvas/evas_clip.c