Ceci n'est pas une char

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Apr 6 16:56:14 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jari-Matti wrote:
> That's very true. A "normal" hard drive reads 60 MB/s. So,
> reading a 4 MB file takes at least 66 ms and a 1 MB UTF-8-file (only
> ASCII-characters) is read in 17 ms (well, I'm a bit optimistic here :).
> A modern processor executes 3 000 000 000 operations in a
> second. Going through the UTF-8 stream takes 1 000 000 * 10 (perhaps?)
> operations and thus costs 3 ms. So it's actually faster to read UTF-8.

1) your sample: English (consider Chinese)
2) magic word: seek

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFENbhY3w+/yD4P9tIRArYCAJ4vxbiR2fim5rFh+AQ4O3e/Gc3xjQCbBnCV
BLrTa9vqU3l8ny+/8Sqw8Mc=
=59uu
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list