From: Alec Thomas Date: Thu, 5 Sep 2013 21:32:46 +0000 (-0400) Subject: Speed up iterator creation a bit by avoiding some copies. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=d11326747b0281142ef98923d6efb0815b45af8b;p=clyne%2Fentityx.git Speed up iterator creation a bit by avoiding some copies. --- diff --git a/entityx/Entity.h b/entityx/Entity.h index 28c1b5d..8edd109 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -291,8 +291,8 @@ class EntityManager : boost::noncopyable, public enable_shared_from_this manager, - std::vector predicates, - std::vector> unpackers, + const std::vector &predicates, + const std::vector> &unpackers, uint32_t index) : manager_(manager), predicates_(predicates), unpackers_(unpackers), i_(index), capacity_(manager_->capacity()) { next();