then there is some confusion, because when i run your program
as-is (except for the bug fix) on my Plan 9 system, i get roughly the 2+
seconds you
mentioned as the time for the Linux system, and that also compares
with the time i get when i run the same code on a Linux system. i can only get
20+ seconds
on Plan 9 IF i have the program do the unbuffered print AND redirect to a file
system across the
network (if i do the unbuffered print and send the output to /dev/null, it's
still about 2 seconds).
--- Begin Message ---
Ok, but when i'd test the program with 'time program' i do comment the print
line, so the program was only sorting the things into the data structure,
not printing it..
even i need to consider the print function?
--- End Message ---