diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2015-10-31 09:54:04 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-10-31 09:54:04 -0700 |
| commit | 682e779a211fdfa0baa41c06d821f0ea9acf4941 (patch) | |
| tree | e82428bd72b6a0b4049eb6ee215c859b8d69c8af /Src/mem.c | |
| parent | 37032: Temporarily revert 36959. (diff) | |
| download | zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.tar zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.tar.gz zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.tar.bz2 zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.tar.lz zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.tar.xz zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.tar.zst zsh-682e779a211fdfa0baa41c06d821f0ea9acf4941.zip | |
unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment about the flip-flopping
Diffstat (limited to 'Src/mem.c')
| -rw-r--r-- | Src/mem.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -79,16 +79,15 @@ #include <sys/mman.h> -#if 0 /* - * This change was designed to enable use of memory mapping on MacOS. + * This definition is designed to enable use of memory mapping on MacOS. * However, performance tests indicate that MacOS mapped regions are - * significantly slower to allocate than memory from malloc(). + * somewhat slower to allocate than memory from malloc(), so whether + * using this improves performance depends on details of zhalloc(). */ #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS) #define MAP_ANONYMOUS MAP_ANON #endif -#endif /* 0 */ #if defined(MAP_ANONYMOUS) && defined(MAP_PRIVATE) |
