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 <[email protected]> Authored: Fri Nov 8 10:36:41 2013 +1100 Committer: Justin Mclean <[email protected]> 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
