Utf8 to Utf32 cast cost
Marco Leise via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 10 10:47:19 PDT 2015
Am Mon, 08 Jun 2015 11:13:25 +0000
schrieb "Daniel Kozak" <kozzi11 at gmail.com>:
> BTW on ldc(ldc -O3 -singleobj -release -boundscheck=off)
> transcode is the fastest:
>
> f0 time: 1 sec, 115 ms, 48 μs, and 7 hnsecs // to!dstring
> f1 time: 449 ms and 329 μs // toUTF32
> f2 time: 272 ms, 969 μs, and 1 hnsec // transcode
Three functions, each twice as fast and twice as hidden as the
one before. :)
--
Marco
More information about the Digitalmars-d-learn
mailing list