Permalink
Browse files

Reduced memory consumption at server start by removing an apparently …

…unnecessary meta-data copy operation...
  • Loading branch information...
1 parent 4b6e13a commit 3a5822aaf119dc2bbeb2e5e15d742205034d3116 @jlecomte jlecomte committed Jan 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/app/autoload/store.server.js
View
2 lib/app/autoload/store.server.js
@@ -1912,7 +1912,7 @@ YUI.add('mojito-resource-store', function(Y, NAME) {
if (versions.hasOwnProperty(resid)) {
highest = Math.max.apply(Math, Object.keys(versions[resid]));
//console.log('--DEBUG-- highest=' + highest + ' -- ' + resid);
- chosen = Y.mojito.util.copy(versions[resid][highest]);
+ chosen = versions[resid][highest];
out.push(chosen);
}
}

0 comments on commit 3a5822a

Please sign in to comment.