[gdome] add listeners field to libxml tree.h?

Date view Thread view Subject view Author view Other groups

Subject: [gdome] add listeners field to libxml tree.h?
From: Raph Levien (raph@acm.org)
Date: Fri Apr 16 1999 - 20:09:40 EDT


This is primarily a question for Daniel.

We need to implement event listeners pretty soon in Gdome. The easiest
thing to do is to add a "listeners" field to every major node struct
in libxml's trees.

If this is voted to be not a good idea, then the next best choice is
probably to implement a hashtable mapping nodes to listeners. This is
actually more memory efficient, but otoh adds quite a bit of overhead
to mutations -- you have to walk up the tree to the root, doing a
hashtable lookup for each node.

What's the right thing to do here?

Raph

----
message from gdome@rpmfind.net
Archive at http://rpmfind.net/tools/gdome/messages/
Unsubscribing: echo "unsubscribe gdome" | mail majordomo@rpmfind.net


Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b27 : Fri Nov 19 1999 - 07:44:24 EST