Author josh.r
Recipients giampaolo.rodola, josh.r, larry, ned.deily, neologix, pitrou, ronaldoussoren
Date 2019-04-03.02:42:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554259365.85.0.991759274821.issue32941@roundup.psfhosted.org>
In-reply-to
Content
It might be nice to expose a more limited API to prefetch memory in bulk while we're at it. Windows 8 and higher offers PrefetchVirtualMemory ( https://docs.microsoft.com/en-us/windows/desktop/api/memoryapi/nf-memoryapi-prefetchvirtualmemory ) which fills roughly the same niche as madvise/posix_madvise with the WILLNEED hint.

I kept meaning to file an issue to suggest this, but kept getting hung up on how to make it as portable as possible and as powerful as possible, and where to implement it.

It could go on mmap, but it's also useful for just about any contiguous buffer-supporting object, so it almost seems like adding an os.madvise (and/or os.prefetch) would make more sense than specifically tying it to the mmap module.
History
Date User Action Args
2019-04-03 02:42:45josh.rsetrecipients: + josh.r, ronaldoussoren, pitrou, larry, giampaolo.rodola, ned.deily, neologix
2019-04-03 02:42:45josh.rsetmessageid: <1554259365.85.0.991759274821.issue32941@roundup.psfhosted.org>
2019-04-03 02:42:45josh.rlinkissue32941 messages
2019-04-03 02:42:45josh.rcreate