Thanks Stephen, that's a lot of helpful info. So in regards to
providing v8 with helpful information, what are the implications of
"cheating" with the memory hints? I'm using libxml and there's no
good way to find out exactly how much memory was just allocated when a
node is created. But the library does provide a method that gives the
*total* amount of memory allocated.
http://xmlsoft.org/html/libxml-xmlmemory.html#xmlMemUsed
So rather than trying to be surgical with the calls to AAoEAAM, I was
thinking of maintaining a variable with the total memory used. And
everytime something is allocated or freed then I would decrement by
the previous value, and immediately increment by the new total memory
value. Does anyone see problems with this level of "churn" on the
memory hints?
:Marco
> ----- stephan bealhttp://
wanderinghorse.net/home/stephan/
>
> --
> v8-users mailing list
> v8-users@googlegroups.comhttp://
groups.google.com/group/v8-users