From: Andy Bennett <[email protected]>
Subject: Re: [Chicken-hackers] mmap
Date: Fri, 11 Jul 2014 14:16:27 +0100

> Hi,
> 
>> There is no way to do this.  By messing around with Linux-specific
>> mmap() flags, you can get Linux to prepage the whole file, paying the
>> entire cost at once,
> 
> Yes. These methods don't strike me as a very good way forward.
> 
> I was thinking more along the lines of executing FFI calls in a (pool
> of?) pthreads.
> That would solve the issue for mmap callers as well as any APIs which
> had underlying blocking calls of any type.

Interesting approach... The concurrent-native-callbacks egg might be
handy in this case. It uses a nonblocking pipe to communicate with
native threads.


felix

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to