in reply to Re^12: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly
All you said was "I know the data I'd be passing are byte strings", implying you wouldn't be running into any problems because you always pass byte strings. I pointed out that's not true.
Wrong! I know what data I am dealing with. And I know how I'm going to use it. And I wrote the routine that you took it upn yourself to "correct" to deal with that data. Not your know-it-all flights of fancy.
You said: It can silently encode your bytes using UTF-8.. And where I'm going with this is trying to get you to realise that you're talking twaddle.
Data either originates from within my program, or from without. And in either case, Perl will treat it as bytes unless I do something explicit to indicate that it should do otherwise. And since I know I'm not going to do that, I do not have to consider it. It's termed YAGNI.
That's dealt with your second "correction", so let's deal with the third more succinctly.
For neither the purposes of the benchmark, nor those of the target application, magic could not be a consideration. Ergo, I did not need to cater for that either. So I didn't. And FYI: magic is never "free".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Interleaving bytes in a string quickly
by ikegami (Patriarch) on Feb 27, 2010 at 04:00 UTC | |
by BrowserUk (Patriarch) on Feb 27, 2010 at 09:46 UTC | |
by ikegami (Patriarch) on Feb 28, 2010 at 23:05 UTC | |
by BrowserUk (Patriarch) on Feb 28, 2010 at 23:23 UTC | |
by ikegami (Patriarch) on Mar 01, 2010 at 00:02 UTC | |
|