mirror of git://git.code.sf.net/p/zsh/code
36956: revert 34451, mmap() is too slow on MacOS
This commit is contained in:
parent
11ca38c6d9
commit
8934007f25
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue