in reply to Re^2: Happy 2006
in thread Happy 2006
The running time is about the same, but your solution uses a lot more memory, as it makes a list of all possible expressions to test before making the first test, while my solution tests each expressions right after it is constructed. My solution has a lot less pagefaults.Ah, someday soon, glob will be an iterator in scalar context.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Happy 2006
by ysth (Canon) on Jan 17, 2006 at 06:17 UTC | |
by QM (Parson) on Jan 18, 2006 at 03:23 UTC | |
|
Re^4: Happy 2006
by Perl Mouse (Chaplain) on Jan 18, 2006 at 10:05 UTC |