d2 file input performance

2011-08-26 Thread Christian Köstlin
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

Re: d2 file input performance

2011-08-26 Thread Steven Schveighoffer
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

Re: d2 file input performance

2011-08-26 Thread bearophile
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

Re: d2 file input performance

2011-08-28 Thread Heywood Floyd
Christian Köstlin Wrote: > after some optimizing i got better, but was still way slower than c++. > so i started some small microbenchmarks regarding fileio: > https://github.com/gizmomogwai/performance in c++, java and d2. > > christian Hello! Thanks for you effort in putting this together!

Re: d2 file input performance

2011-08-29 Thread Christian Köstlin
On 8/26/11 23:56 , bearophile wrote: 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 is

Re: d2 file input performance

2011-08-31 Thread Christian Köstlin
Update: I added performance tests for ldc and gdc with the same programs. The results are interesting (please see the github page for the details). regards christian On 8/26/11 19:43 , Christian Köstlin wrote: Hi guys, i started the thread: http://stackoverflow.com/questions/7202710/fastest

Re: d2 file input performance

2011-08-31 Thread David Nadlinger
On 9/1/11 7:12 AM, Christian Köstlin wrote: Update: I added performance tests for ldc and gdc with the same programs. The results are interesting (please see the github page for the details). Oh wow, LDC must accidentally call some druntime functions for the ubyte[1] case, or something simila

Re: d2 file input performance

2011-09-02 Thread dennis luehring
Am 26.08.2011 19:43, schrieb Christian Köstlin: 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 wi

Re: d2 file input performance

2011-09-04 Thread Christian Köstlin
On 9/1/11 7:24 , David Nadlinger wrote: On 9/1/11 7:12 AM, Christian Köstlin wrote: Update: I added performance tests for ldc and gdc with the same programs. The results are interesting (please see the github page for the details). Oh wow, LDC must accidentally call some druntime functions fo

Re: d2 file input performance

2011-09-04 Thread Christian Köstlin
On 9/3/11 7:53 , dennis luehring wrote: Am 26.08.2011 19:43, schrieb Christian Köstlin: 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 e

Re: d2 file input performance

2011-10-17 Thread Marco Leise
Am 04.09.2011, 19:01 Uhr, schrieb Christian Köstlin : On 9/3/11 7:53 , dennis luehring wrote: Am 26.08.2011 19:43, schrieb Christian Köstlin: Hi guys, i started the thread: http://stackoverflow.com/questions/7202710/fastest-way-of-reading-bytes-in-d2 on stackoverflow, because i ran into k