You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/11/08 00:37:10 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-33885 improve
memory performance
Updated Branches:
refs/heads/develop 27694bb4c -> bb6bdb47a
FLEX-33885 improve memory performance
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/bb6bdb47
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/bb6bdb47
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/bb6bdb47
Branch: refs/heads/develop
Commit: bb6bdb47aee11818122ed1982764144bd341efd2
Parents: 27694bb
Author: Justin Mclean <jm...@apache.org>
Authored: Fri Nov 8 10:36:41 2013 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Fri Nov 8 10:36:41 2013 +1100
----------------------------------------------------------------------
.../projects/framework/src/mx/binding/BindingManager.as | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/bb6bdb47/frameworks/projects/framework/src/mx/binding/BindingManager.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/binding/BindingManager.as b/frameworks/projects/framework/src/mx/binding/BindingManager.as
index a620108..c70cf16 100644
--- a/frameworks/projects/framework/src/mx/binding/BindingManager.as
+++ b/frameworks/projects/framework/src/mx/binding/BindingManager.as
@@ -150,9 +150,11 @@ public class BindingManager
if (binding.charAt(0) == destStr.charAt(0))
{
- if (binding.indexOf(destStr + ".") == 0 ||
- binding.indexOf(destStr + "[") == 0 ||
- binding == destStr)
+ var length:int = destStr.length;
+ if (
+ //check if binding start with destStr+"." or destStr+"[" with a minimum number of string allocations
+ (length < binding.length && binding.indexOf(destStr) == 0 && (binding.charAt(length) == "." || binding.charAt(length) == "["))
+ || binding == destStr)
{
// If this is a RepeatableBindings, execute it on just the
// specified object, not on all its repeated siblings. For