Re: Memory allocation overhead

Lothar Scholz <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Organization Scriptolutions
Message-ID <[email protected]>
Hello Colin,

Saturday, March 29, 2008, 2:07:09 AM, you wrote:

>>>>>> "Lothar" == Lothar Scholz <[email protected]> writes:

CPA>     Lothar> Exactly for this reason some java compilers have a special
CPA>     Lothar> optimization inside the code generator when it detects
CPA>     Lothar> sequences of strings concatenations. It's just a to
CPA>     Lothar> important operation.

CPA> so what do they do about it?

The compiler catches this and generates code for a a string buffer object
that gets filled with the concatenated parts. Very simple to implement.

-- 
Best regards,
 Lothar                            mailto:[email protected]


-------------------------------------------------------------------------
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.