Post about comparing C, C++ and D performance with a real world project

Kagamin spam at here.lot
Sat Dec 9 10:55:20 UTC 2017


On Thursday, 7 December 2017 at 21:38:57 UTC, Daniel Kozak wrote:
> Yes using FILE* directly could be the way.  But using 
> file.rawRead is still possible. But it is better to use static 
> array with length one.

This can reflect absence of middle level resources like basic 
optimization techniques for D - it's too complex for tour and too 
obvious for experts. For interoperability with FILE* one must be 
really familiar with slices: remember in C arrays just work. And 
when one hears about memory allocation optimization in D one 
thinks about ranges, which is a bit involved already.


More information about the Digitalmars-d mailing list