more instrumentation
This commit is contained in:
parent
4c40bcc2c5
commit
2012d1a99a
@ -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());
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user