to!(T[]) is awesome.
I've ported this little C thingy:
sscanf(oneline, "%f %f %f %f %f", &x, &y, &z, &u, &v);
to this:
to!(float[])(line.split);
Can't get easier than that!
with doesn't work properly with alias this, I've already filed this in
bugzilla though.
Steven Schveighoffer:
> In fact, it would probably be faster.
I suggest the OP to keep us updated on this matter. And later after some time,
if no solutions are found, to bring the issue to the main D newsgroup and to
Bugzilla too. This is a significant issue.
Bye,
bearophile
On Fri, 26 Aug 2011 13:43:23 -0400, Christian Köstlin
wrote:
Hi guys,
i started the thread:
http://stackoverflow.com/questions/7202710/fastest-way-of-reading-bytes-in-d2
on stackoverflow, because i ran into kind of a problem.
i wanted to read data from a file (or even better from a st
Hi guys,
i started the thread:
http://stackoverflow.com/questions/7202710/fastest-way-of-reading-bytes-in-d2
on stackoverflow, because i ran into kind of a problem.
i wanted to read data from a file (or even better from a stream, but
lets stay with file), byte-by-byte. the whole thing was p