From 4e2fe6b27a397464055f065facce9ea09655f2fd Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Tue, 24 Oct 2017 00:55:54 +0200
Subject: [PATCH] collections

---
 src/perf-tests/sets.ts                 | 4 ++--
 src/structure/collections/multi-set.ts | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/perf-tests/sets.ts b/src/perf-tests/sets.ts
index 7797d8907..358039246 100644
--- a/src/perf-tests/sets.ts
+++ b/src/perf-tests/sets.ts
@@ -4,7 +4,7 @@ import OrdSet from '../structure/collections/ordered-set'
 import MSet from '../structure/collections/multi-set'
 
 namespace Iteration {
-    const U = 1000, V = 1000;
+    const U = 1000, V = 2500;
 
     const control: number[] = [];
     const sets = Object.create(null);
@@ -51,7 +51,7 @@ namespace Iteration {
 
     export function manual1() {
         let s = 0;
-        for (let i = 0, _i = MSet.componentCount(ms); i < _i; i++) {
+        for (let i = 0, _i = MSet.getSetCount(ms); i < _i; i++) {
             const set = MSet.getSetByIndex(ms, i);
             for (let j = 0, _j = OrdSet.size(set); j < _j; j++) {
                 s += OrdSet.get(set, j);
diff --git a/src/structure/collections/multi-set.ts b/src/structure/collections/multi-set.ts
index 1ab9f9ff3..f7d908d1f 100644
--- a/src/structure/collections/multi-set.ts
+++ b/src/structure/collections/multi-set.ts
@@ -28,7 +28,7 @@ namespace MultiSet {
         return set.keys;
     }
 
-    export function componentCount(set: MultiSet): OrderedSet {
+    export function getSetCount(set: MultiSet): number {
         if (typeof set === 'number') return 1;
         return OrderedSet.size(set.keys);
     }
-- 
GitLab