nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Pessimal Optimizations.

2012-12-11 19:48:16

On 2012-12-11, at 5:25 PM, Lyndon Nerenberg wrote:

But again, these really are micro-optimizations.  mmap() won't make anything 
run perceivably faster, but it will introduce the potential for many subtle 
bugs.  Best to leave well enough alone.

I forgot to say ...

Someone mentioned FreeBSD (I think) and cp using mmap() for copies.

These are *very* OS-specific optimizations. Look at FreeBSD's malloc for an 
excellent example of the misuse of mmap() :-P

None of these mmap() "optimizations" is portable; MH's heritage is portability.

--lyndon


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>