more instrumentation

This commit is contained in:
Konstantin Käfer 2011-01-27 10:17:45 -05:00
parent 4c40bcc2c5
commit 2012d1a99a
2 changed files with 2 additions and 1 deletions

View File

@ -343,6 +343,7 @@ mess.Renderer = function Renderer(env) {
// Add the negated previous selectors.
var mergeTime = +new Date;
for (var j = 0; j < previousSelectors.length; j++) {
for (var k = selectors.length - 1; k >= 0; k--) {
var splitSelectors = selectors[k].mergeOrConditions(previousSelectors[j]);
@ -358,6 +359,7 @@ mess.Renderer = function Renderer(env) {
}
}
}
if (env.debug) console.warn(' Merge time: ' + ((new Date - mergeTime)) + 'ms');
previousSelectors.push(definitions[i].selector.negate());

View File

@ -61,7 +61,6 @@ tree.Selector.prototype.merge = function(obj) {
* it splits up the selector and creates one for each condition.
*/
tree.Selector.prototype.mergeOrConditions = function(obj) {
assert.ok(this.sound());
var result = [ this ];
if (obj.filters.length) {