Re: Memory allocation overhead

Eric Bezault <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
Colin Paul Adams wrote:
> But I am now wondering about code inlining. It appears that gec does
> not inline all three routines new_child_tree_iterator, release_iterator
> and new_descendant_tree_iterator in the code below. (Note that the bulk of
> the class is commented out. The test program then runs in 21 minutes
> and 8 seconds, as opposed to 20 minutes and 28 seconds (+- 3 seconds)
> with the creations inlined, and no call to release_iterator (there is
> an extra assignment to Void of the iterator passed to release_iterator
> following the call to release_iterator, but I hardly think that can
> account for the difference). With all the commented-out code restored,
> (and assignemt of 4 default values to attributes in the creation
> procedures, which costs about 6 seconds) the time rises to 21 minutes
> and 52 seconds. 

I would surprise me that the level of inlining currently implemented
in gec has anything to do with the time actually spent in the GC that
was shown in your profiling results.

-- 
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.