Subject: Re: bug#19393: 25.0.50; Emacs cannot determine coding system of ISO-8859 encoded files

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 07 Sep 2020 23:30:18 +0200

Wolfgang Jenkner <[email-masked]> writes:

> * src/buffer.c (MAP_EXCL): Make sure it is always defined.
> (MMAP_ALLOCATED_P, mmap_enlarge): Use it.
> This alleviates a performance problem due to excessive use of
> memcpy(3). (Bug#19393)

[...]

> -		    MAP_ANON | MAP_PRIVATE | MAP_FIXED, mmap_fd, 0);
> +		    MAP_ANON | MAP_EXCL | MAP_PRIVATE | MAP_FIXED, mmap_fd, 0);

This patch apparently made loading huge files on FreeBSD a lot faster,
but as far as I can tell, it was never applied.

This was five years ago, though -- Wolfgang, is this still a problem on
FreeBSD?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no