D and i/o

bioinfornatics bioinfornatics at fedoraproject.org
Sun Nov 10 07:16:31 UTC 2019


On Saturday, 9 November 2019 at 23:39:09 UTC, bioinfornatics 
wrote:
> Dear,
>
> In my field we are io bound thus I would like to have our tools 
> fast as I can read a file.
>
> Thus I started some dummy bench which count the number of lines.
> The result is compared to wc -l command. The line counting is 
> only a pretext to evaluate the io, this process can be switched 
> by any io processing. Thus we use much as possible the buffer 
> instead the byLine range. Moreover such range imply that the 
> buffer was read once before to be ready to process.
>
>
> https://github.com/bioinfornatics/test_io
>
> Ideally I would like to process a shared buffer through 
> multiple core and run a simd computation. But it is not yet 
> done.

If you have some scripts or enhancements you are welcome

Currently results show that naïve implementation is at least 
twice time slower than wc, up to 5 slower for // scripts


More information about the Digitalmars-d mailing list