-
Committer:
Łukasz 'sil2100' Zemczak
-
Date:
2012-06-22 16:18:18 UTC
-
mfrom:
(3104.2.2 cherry_3236_3237)
-
Revision ID:
lukasz.zemczak@canonical.com-20120622161818-4nsg49t91x560xfc
Cherry-picked from compiz trunk (revs 3236, 3237):
Avoid constructing and destructing lots of strings on every single event, which was wasting lots of CPU (LP: #1005569)
Improve the fix for LP: #1005569:
Calling CompOption::setName should not implicitly construct a new string object every time, when the name is not changing.
This is also an alternative fix to the previous commit, but both together don't hurt either.