in reply to Re^8: Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)
in thread Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)
I'm not an optimization guru or anything, but isn't working with the data at a lower level a common optimization technique? IIRC, it's a big part of why the core C language uses chars that are basically small integers, and that strings are represented by arrays of chars. It's easy for the compiler, and it's very efficient. It's certainly not because it makes programming string-heavy projects easier.
I would really like to see the benchmark run that is showing my code failing the "same output" test, if such data exists. Update: This concerns me about the test, then, because my broken version doesn't seem to have ever killed the test.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)
by ikegami (Patriarch) on Sep 13, 2007 at 18:36 UTC | |
by mr_mischief (Monsignor) on Sep 13, 2007 at 18:41 UTC |