diff --git a/dastworx/src/halstead.d b/dastworx/src/halstead.d index 8ae12a48..8a42fb97 100644 --- a/dastworx/src/halstead.d +++ b/dastworx/src/halstead.d @@ -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; }