36956: revert 34451, mmap() is too slow on MacOS

This commit is contained in:
Barton E. Schaefer 2015-10-26 07:19:01 -07:00
parent 11ca38c6d9
commit 8934007f25
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-10-26 Barton E. Schaefer <schaefer@zsh.org>
* 36956: Src/mem.c: revert 34451, mmap() is too slow on MacOS
2015-10-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
* users/20825: Src/Zle/zle_utils.c: get_undo_current_change()

View File

@ -79,9 +79,16 @@
#include <sys/mman.h>
#if 0
/*
* This change was 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().
*/
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif
#endif /* 0 */
#if defined(MAP_ANONYMOUS) && defined(MAP_PRIVATE)