in reply to Re^13: list of unique strings, also eliminating matching substrings
in thread list of unique strings, also eliminating matching substrings
DB<109> $w=""; $a="x" x 300; $t=time; $w.=$a for (1..200_000); prin +t time-$t, ":", length $w 9:60000000 DB<110> $x="x" x 60000000; $x=""; $a="x" x 300; $t=time; $x.=$a for +(1..200_000); print time-$t, ":", length $x 0:60000000
Anyway 9 seconds are not that much...
Calculating 200_000 on my limited system takes hours, especially if I start with your algo...maybe next night
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^15: list of unique strings, also eliminating matching substrings
by BrowserUk (Patriarch) on Jun 03, 2011 at 15:53 UTC | |
by LanX (Saint) on Jun 03, 2011 at 16:05 UTC | |
by BrowserUk (Patriarch) on Jun 03, 2011 at 16:31 UTC | |
by LanX (Saint) on Jun 03, 2011 at 17:03 UTC | |
by BrowserUk (Patriarch) on Jun 03, 2011 at 17:46 UTC | |
|