Re: Memory allocation overhead

Eric Bezault <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
Colin Paul Adams wrote:
>     EB> I just saw that in your last check-in you used MEMORY.free.
>     EB> This is a bad idea in my opinion.
> 
> Why? I was only using it in places where I could guarantee that the
> object wouldn't be used again (not a frequent case).

It's a bad idea for two reasons. If GC have been invented,
it's because we cannot trust humans, including you. You
can guarantee that the object would not be used again
today. But what about in two years from now, after several
iterations of refactoring? And I usually don't trust
features/constructs that nobody else (except Lothar) used
despite the fact that it has been available for more
than a decade, and even more when it is related to a
so complex thing as a GC. You can use it at your own
risk in gestalt or other developments, but if possible
it would be nice if we could refrain from using it in
the Gobo package.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
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.