Skip to main content
7 events
when toggle format what by license comment
Oct 7, 2016 at 4:04 history edited mdfst13 CC BY-SA 3.0
edited body
Jan 9, 2016 at 3:35 comment added ivan Interesting, I'm seeing the opposite on my system, except with input that truncates a very short string to an even shorter one. Not a significant difference either way though. Anyway, good to know! Thanks
Jan 9, 2016 at 2:55 comment added chux @ivan Certainly not a huge difference - it is the same O(). The benefit is platform dependent. But, in general, one short loop, is faster (or as fast) as 2 short loops.
Jan 9, 2016 at 2:45 comment added ivan Why will it be faster to run n + m iterations in a single loop than to run a loop of n iterations followed by a loop of m iterations? Is there that much overhead in setting up each loop?
Jan 7, 2016 at 22:55 history edited chux CC BY-SA 3.0
added 307 characters in body
Jan 7, 2016 at 22:47 history edited chux CC BY-SA 3.0
added 307 characters in body
Jan 7, 2016 at 22:39 history answered chux CC BY-SA 3.0