On Wed, Feb 3, 2016 at 9:40 AM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > Is the code available somewhere? Would love to try some optimizations on it.
Liz, code is in public pastes in Pastebin. Links are here: 1. The master Perl 6 script to run the tests: http://pastebin.com/MDmumWq0 2-3. The two file creation scripts (Perl 5 and 6): http://pastebin.com/RwizhVLT http://pastebin.com/g2VNHQnn 4-5. The two file reader scripts (Perl 5 and 6): http://pastebin.com/miY60cP3 http://pastebin.com/XAkpF7bA 6-7. The smallest test file for a fast start: http://pastebin.com/d8ws15qm Check inside file 1 which is set to just use the zero-gb file. Near the top of the file you'll see where you just select one of two Gb arrays by commenting out one or the other: #!/usr/bin/env perl6 # test file sizes: #my @GB = <0 1 2 3 4 5 6 7 8 9 10>; my @GB = <0>; # a small file for testing this file Good luck. criticisms and suggestions welcome. Cheers! -Tom