Artifact 69866704f80f17a6592d837f5e4b5e166dcef7d9:
- File tests/langbench/sort.tcl — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 299) [annotate] [blame] [check-ins using]
proc main {} { global argv foreach file $argv { set f [open $file rb] # Takes 2.7 seconds/12.3 while {[gets $f buf] >= 0} { lappend l $buf } close $f } # takes 7.9 seconds/12.3 foreach buf [lsort $l] { puts $buf } } fconfigure stdout -buffering full -translation binary main