From xemacs-m  Fri Jan 10 09:13:53 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id JAA24035 for <xemacs-beta@xemacs.org>; Fri, 10 Jan 1997 09:13:48 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.4/8.8.4)
	  id QAA11063; Fri, 10 Jan 1997 16:13:41 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org
Subject: Re: Inserting into a buffer.
References: <Pine.SGI.3.95.961219034733.22578D-100000@shellx.best.com> <rvn2v965c3.fsf@sdnp5.ucsd.edu> <m24thhawcp.fsf@altair.xemacs.org> <rvvi96m11p.fsf@sdnp5.ucsd.edu>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 10 Jan 1997 16:13:31 +0100
In-Reply-To: David Moore's message of 09 Jan 1997 23:39:30 -0800
Message-ID: <kigohexpnqc.fsf@jagor.srce.hr>
Lines: 27
X-Mailer: Red Gnus v0.79/XEmacs 19.14

David Moore (dmoore@ucsd.edu) wrote:
> Steven L Baur <steve@miranova.com> writes:
> > That must be coming from the relocating allocator.  Try running the
> > same test with it disabled from configure.

Speaking of which, does Emacs have something like the relocating
alocator?

> 	Results on Hrvoje's benchmark are improved under solaris if the
> relocating allocator is turned off.  (180sec->150sec with -O4 on 19.15b7
> for sparcserver5 with 64M).  I may look into the code, because I don't
> see why mmap should be costing that much more.

It's probably not mmap syscall that is costing, but the fact that
*anything* is called, as opposed to the no-relocation case.

> 	The patch below speeds up inserts and other operaations on
> buffers with no extents in them.  On Hrvoje's benchmark: 180sec->120sec.

It's a great speedup (33%) -- thanks!  I believe this could influence
many other benchmarks, the speed of which might have in fact depended
on the speed of inserting into the buffer.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
If a President doesn't do it to his wife, he'll do it to his country.

