Re: On malloc/free being slow and non-deterministic just lik…

Top Page

Reply to this message
Author: Andy Sy
Date:  
To: True Computer Science Mailing List
Subject: Re: On malloc/free being slow and non-deterministic just like auto GC
Dean Michael Berris wrote:

> Consider the alternative (which is way faster, and less wasteful):
>
> You pre-allocate a certain amount of memory (say, 1000 contiguous
> elements to store node descriptors for the DOM of the document you'll
> be rendering in the browser) then have the browser use and re-use this
> area until it's exhausted: when you need more, you double that area in
> memory, or grow it by another constant factor. The point is you
> pre-acquire the areas in memory to store _node descriptors_.


What a cop-out. After all the fancy talk, the reality remains
that when you find that you need to "double that memory [pool]"
then that's gonna require a new invocation of malloc() and since
other parts of the program have most likely been using the heap
as well, you can't really know ahead of time how this (presumably
big) new invocation of malloc() will take.

Who are you trying to fool here? Your own self? LOL! You
are so caught up in all the unnecessarily complexity, you fail
to see the plain, simple truth.



>> Dido already gave an extremely clear example of why *it is completely
>> absurd to think you can avoid usage of the heap for any normal
>> program*. It really takes a mulehead and/or a moron to fail to
>> appreciate why.
>
> Sorry, no. What Dido presented was a scenario where you cannot avoid
> using the heap,


Exactly what I said.

> but not a situation where pre-allocation will not work.


*NOT WHAT I SAID*

You think that by doing this sort of *dishonest*
I-said-what-I-didn't switcheroo, you can save face.

YOU KEEP PULLING THIS IDIOTIC STRAWMAN STUNT EVERYTIME YOUR
GET EXPOSED FOR YOUR HOT AIR AND OUTLANDISH CLAIMS. Everytime
you realize the truth of what someone arguing with you is
saying, instead of admitting you were wrong, you REPEAT what
the other side says, claim it as your own assertion AND THEN
TRY TO CLAIM THAT THE OTHER SAID SOMETHING DIFFERENT! You are
truly the ultimate A-HOLE debater.


The compsci list archives going many years back will verify
this and it's high time the entire list realized what a SHIFTY,
IDIOTIC, arguer you are. Here ya go:



/"\
|\./|
| |
| |
|>~<|
| |
/'\| |/'\..
/~\| | | | \
| =[@]= | | \
| | | | | \
| ~ ~ ~ ~ |` )
| /
\ /
\ /
\ _____ /
|--//''`\--|
| (( +==)) |
|--\_|_//--|



______________________________________________________
True Computer Science Mailing List
compsci@??? (#CompSci @ irc.free.net.ph)
http://lists.free.net.ph/mailman/listinfo/compsci
Searchable Archives: http://archives.free.net.ph