char array weirdness

Jack Stouffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 31 06:31:41 PDT 2016


On Thursday, 31 March 2016 at 12:49:57 UTC, ag0aep6g wrote:
> I get theses timings then:
> ----
> auto-decoding           642 ms, 969 μs, and 1 hnsec
> byCodeUnit              84 ms, 980 μs, and 3 hnsecs
> ----
> And 643 / 85 ≅ 8.

Ok, so not as bad as 100x, but still not great by any means. I 
think I will do some investigation into why array of dchar is so 
much slower than calling array with char[].


More information about the Digitalmars-d-learn mailing list