summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-24 20:10:39 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-03 14:51:13 +0200
commit4ad9081c81eefacc5b79738561017042371b137f (patch)
treeca627be8811326b9080cb9ef8fd62978d2658865
parent11da91898348737b805590581b07bedeeaa90a7c (diff)
downloadefl-4ad9081c81eefacc5b79738561017042371b137f.tar.gz
eo: use eina_prefetch
we should prefetch the func pointer here. Later on we are accessing the func pointer in a streak, after that, we do not use it anymore. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11593
-rw-r--r--src/lib/eo/eo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 499a4800d1..23a6b35ba0 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -577,6 +577,7 @@ obj_super_back:
else
{
func = _vtable_func_get(vtable, op);
+ EINA_PREFETCH_NOCACHE(func);
// this is not very likely to happen - but may if its an invalid
// call or a composite object, but either way, it's not very likely
// so make it a goto to save on instruction cache