Hashmaps now autoexpand based on loadFactor.

git-svn-id: https://spexeah.com:8443/svn/Asuro@1298 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2020-07-17 22:29:27 +00:00
parent b802ac9607
commit 984b6a89c8
5 changed files with 111 additions and 54 deletions

View File

@ -178,7 +178,9 @@ begin
console.init();
{ CPUID }
console.outputln('CPU', 'Init begin');
cpu.init();
console.outputln('CPU', 'Init end');
{ Call Tracer }
tracer.init();
@ -242,8 +244,7 @@ begin
tracer.push_trace('kmain.TICK');
HM:= hashmap.new(10000);
HM:= hashmap.new(16);
hashmap.add(HM, 'testificate', void(1));
hashmap.add(HM, 'asuro', void(10));
hashmap.add(HM, 'myfirstos', void(100));