mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-16 17:24:59 +12:00
comment re potential redundant eval
This commit is contained in:
parent
fb5d93d207
commit
0174955287
|
@ -399,6 +399,12 @@ Matrix.prototype.evaluateCellZXY = function(srcHostname, desHostname, type) {
|
|||
return Matrix.GreenIndirect;
|
||||
}
|
||||
|
||||
// TODO: There are cells evaluated twice when the type is '*'. Unsure
|
||||
// whether it's worth trying to avoid that, as this could introduce
|
||||
// overhead which may not be gained back by skipping the redundant tests.
|
||||
// And this happens *only* when building the matrix UI, not when
|
||||
// evaluating net requests.
|
||||
|
||||
// Specific-hostname specific-type cell
|
||||
var r = this.evaluateCellZ(srcHostname, desHostname, type);
|
||||
if ( r === 1 ) { return Matrix.RedDirect; }
|
||||
|
|
Loading…
Reference in a new issue