From 34c55c4d07af131c9da06c367ac2958a6090f2a3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 30 Apr 2024 20:08:37 +0200 Subject: Add more 2-stage lookup tables --- gen/prop/gc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gen/prop/gc') diff --git a/gen/prop/gc b/gen/prop/gc index f37cb4b..cc4d35b 100755 --- a/gen/prop/gc +++ b/gen/prop/gc @@ -77,7 +77,7 @@ def main() -> None: if bs > len(xs): break Cs = [tuple(x) for x in chunks(xs, bs)] - cs = list(dict.fromkeys(Cs)) + cs = set(Cs) sz_s1 = len(Cs) * isize(len(cs) - 1) sz_s2 = len(cs) * bs * 4 @@ -90,5 +90,7 @@ def main() -> None: Cs = [tuple(x) for x in chunks(xs, blksize)] genfile(Cs, blksize) + report_size(len(xs), smallest) + if __name__ == '__main__': main() -- cgit v1.2.3