gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Re: sequences / in-lining


From: Paul F. Dietz
Subject: Re: [Gcl-devel] Re: sequences / in-lining
Date: Wed, 05 Oct 2005 21:45:55 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920

Camm Maguire wrote:

Also inlined are: length and reverse, endp and identity are expanded,
the former to throw an error only when safety >=1.

There is an unused heap sort in the code too, but I can't see any gain
here, as the memory requirements are virtually the same.  The
quick-sort is non-recursive and uses a tiny stack ~ log_2(n).  I have
to read up on what stable-sort is supposed to be.

More to follow.  Feedback appreciated.  Notably, sort is likely the
biggest inline we would ever consider, and its impact on code size
might be arguable.  But it certainly pays off in performance.

Build time for gcl on my machine seems to have gone up by roughly
50%.  The size of the .o file for the random tester appears
to have doubled.  Is the inlining being a bit too aggressive?

        Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]