Blender Git Commit Log

Git Commits -> Revision 0f2ae61

Revision 0f2ae61 by Lukas Stockner (master)
January 14, 2021, 21:03 (GMT)
Use mmap() IO for reading uncompressed .blends

Instead of submitting tons of tiny IO syscalls, we can speed things up
significantly by `mmap`ing the .blend file into virtual memory and directly
accessing it.

In my local testing, this speeds up loading the Dweebs file with all its
linked files from 19sec to 10sec (on Linux).

As far as I can see, this should be supported on Linux, OSX and BSD.
For Windows, a second code path uses `CreateFileMapping` and
`MapViewOfFile` to achieve the same result.

Reviewed By: mont29, brecht

Differential Revision: https://developer.blender.org/D8246

Commit Details:

Full Hash: 0f2ae614a17a7c231b2a6e129633a99d9d1f12e3
Parent Commit: 33a558b
Lines Changed: +376, -375

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021