Subject: RE: sgml-parse and GC From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Mon, 19 Jul 1999 19:56:59 -0400 |
Hi Peter, Peter said: The reason it's cached is that if you call sgml-parse many times for one entity, it would be very inefficient to parse the same document over and over again. It doesn't seem easy to me to know if the sgml-parse would get called further on. I think the best solution would be to replace the current in memory grove implementation with an implementation on disk with mmap'd files. Then all groves would be cached and memory management would be passed to the OS kernel. This, I think, was proposed several times before. Didier says: Matthias did some documentation about the memory allocation mechanism and more particularly the garbage collector. It seems that we can improve the memory management from what we learned and what Matthias documented. Off course the sgml-parse has to occur only once or have the node-list tagged with an identifier. The last solution is quite hard to implement with this type of language. Then we can check how sgml-parse behave by tracing it and documenting it. But actually, I am still working on the StyleEngine class and the dssslEventXXXX class and documenting them both internally with a header (finally) and an external document giving more details. About the permanent grove, I did some experiments and the trick is to overload the grove class with a CORBA or DCOM interface so that the grove could be seen also as a component and implemented either in memory, on memory mapped files or in an object data base. This way, we can bypass the XML/SGML parsing to only do the formatting. But before going further, I need to better understand the OpenJade memory management. regards Didier PH Martin mailto:martind@xxxxxxxxxxxxx http://www.netfolder.com DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
sgml-parse and GC, Peter Nilsson | Thread | RE: sgml-parse and GC, Peter Nilsson |
Re: OpenJade and Debian, Matthias Clasen | Date | RE: sgml-parse and GC, Didier PH Martin |
Month |