3 ms·
It is easy to use mmap from Python. You can do zero copy too e.g., https://stackoverflow.com/questions/17244488/reading-struct-in-python-from-created-struct-in-
by d0mine 4y ago
It is easy to use mmap from Python. You can do zero copy too e.g., https://stackoverflow.com/questions/17244488/reading-struct-in-python-from-created-struct-in-c https://stackoverflow.com/questions/17244488/reading-struct-... (see mmap+frombuffer example)
Though in practice, in many cases, mmap won't be faster, it can be even slower than open+read.