D and i/o
bioinfornatics
bioinfornatics at fedoraproject.org
Sun Nov 10 07:43:31 UTC 2019
On Sunday, 10 November 2019 at 07:33:41 UTC, Jonathan Marler
wrote:
> On Sunday, 10 November 2019 at 07:16:31 UTC, bioinfornatics
> wrote:
>> On Saturday, 9 November 2019 at 23:39:09 UTC, bioinfornatics
>> wrote:
>>> [...]
>>
>> 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
>
> I haven't really looked at your code but in general I find mmap
> to be much faster than reading a file when searching for things.
a)
Thanks Jonathan, I plan to add a script using mmap. It is
definitely into my todo list.
b)
On linux et seem that kernel could handle // read through
asynchronous read ,describe
here: https://oxnz.github.io/2016/10/13/linux-aio/.
c)
I plan too perform same file process than describe here in C# :
https://oxnz.github.io/2016/10/13/linux-aio/
More information about the Digitalmars-d
mailing list