Hi,
        the nodes point to each other and so there is not a large storage 
of node pointers in a container. Is this the information you want?

Gareth


On Fri, 4 Jul 2003, jiang lei wrote:

> Hi everybody,
> 
> Everytime I use the method DOMNode::getElementsByTagname() I am quite
> worried about the memory allocation. That method returns a pointer to
> DOMNodeList, which stores node pointers in a temporary place.
> 
> So it came to me like there are possibly 2  pattern for the making of  a
> DOMNodeList:
> 
> 1. the newly created DOMNodeList takes memory from a memory pool or register
> itself to a memory manager. When the node or document is released,
> corresponding DOMNodeList will be destructed as well.
> 
> 2. there can only be 1 instance of a DOMNodeList at a time for each DOMNode.
> Each time you use getElementsByTagname(), the old will be gone and a new
> list will be created in its place.
> 
> Am I right? Or is there another pattern?
> 
> Thanks a lot for your attention.
> 
> Best Regards
> 
> Lei
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to