mirror of https://gitlab.com/basile.b/dexed.git
halstead, reserve aa buckets for each new funct
This commit is contained in:
parent
b668c02f4a
commit
560c5a5df0
|
|
@ -129,6 +129,8 @@ private final class HalsteadMetric: ASTVisitor
|
|||
{
|
||||
operators.clear;
|
||||
operands.clear;
|
||||
operators.reserve(64);
|
||||
operands.reserve(64);
|
||||
if (functionNesting++ == 0)
|
||||
functions.length = functions.length + 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue