From: Jimmy Z. <cra...@co...> - 2007-03-05 18:43:36
|
Rodrigo, in one of the early emails you mentioned that your app sometimes keeps thousands of those nodes (or context), how do you tell them apart? There got to be some data structures to store those context info, right? What if it is implemented such that 1. those contexts/nodes are stored in a linear buffer, which is more space efficient than allocating individual objects 2. You can address those nodes by using an integer, sort like a VTD record... would you consider the design outlined above can be useful to your app? Jimmy ----- Original Message ----- From: "Rodrigo Cunha" <rn...@gm...> To: <vtd...@li...> Sent: Monday, March 05, 2007 3:49 AM Subject: Re: [Vtd-xml-users] Random Access Proposal (take 2) >I think we are already getting out of the inicial context, so let's do > reset :-) > > Let's get back to basics: the API, as it exists now, is unusable for > what I want. And I don't want that much either, just to be able to keep > nodes in my own data structures in an easy and efficient way to access. > I actually solved the problem since ximpleware-1.6, I shared the patch > then, I'm sharing it now again, since it seems the problem is recurrent > with others also. > > I'm not saying this is the correct implementation, I'm saying this is > the correct API, or close to that. The implementation is not that bad > either, but perhaps can be improved. As it is it's working just fine, > and is so obvious I'm still puzzled at why wasn't it part of ximpleware > since version 1.0. > > Remember, the objective is "being able to keep a bunch of nodes in data > structures in an easy and efficient way to access", with no fuzz > attached. Just something like "give me node x bookmark", "take this > bookmark and go back there". > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Vtd-xml-users mailing list > Vtd...@li... > https://lists.sourceforge.net/lists/listinfo/vtd-xml-users > |