Method and apparatus for runtime merging of hierarchical trees
First Claim
1. A method for merging one or more hierarchical trees at runtime comprising:
- examining one or more nodes in each of said hierarchical trees;
determining if there are one or more sets of equivalent nodes in said hierarchical trees;
picking one or more winning nodes from each of said sets of equivalent nodes; and
storing one or more reference nodes to said winning nodes.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention relate to a method and apparatus for a runtime merging system of hierarchical trees with a reference node implementation. According to one or more embodiments of the present invention, a reference node is implemented which holds a reference to a node in a DOM tree active in memory. The reference node class allows adding nodes to the merged tree without having to make a clone of the node, which is an expensive operation. In one embodiment, if a particular node is not present below a certain level of the tree in any layer except a unique layer, it renders visiting the children of that node unnecessary. A reference is kept to the node in the memory.
-
Citations
36 Claims
-
1. A method for merging one or more hierarchical trees at runtime comprising:
-
examining one or more nodes in each of said hierarchical trees;
determining if there are one or more sets of equivalent nodes in said hierarchical trees;
picking one or more winning nodes from each of said sets of equivalent nodes; and
storing one or more reference nodes to said winning nodes. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for merging one or more hierarchical trees at runtime comprising:
-
one or more nodes in each of said hierarchical trees configured to be examined;
one or more sets of equivalent nodes in said hierarchical trees configured to be located if said sets of equivalent nodes exist;
one or more winning nodes configured to be picked from each set of said equivalent nodes; and
one or more reference nodes to said wing nodes configured to be stored. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36)
-
-
19. A computer program product comprising:
-
a computer usable medium having computer readable program code embodied therein configured to merge one or more hierarchical trees at runtime comprising;
computer readable code configured to cause a computer to examine one or more nodes in each of said hierarchical trees;
computer readable code configured to cause a computer to determine if there are one or more sets of equivalent nodes in said hierarchical trees;
computer readable code configured to cause a computer to pick one or more winning nodes from each set of said equivalent nodes; and
computer readable code configured to cause a computer to store one or more reference nodes to said winning nodes.
-
-
28. An apparatus for merging one or more hierarchical trees at runtime comprising:
-
means for examining one or more nodes in each of said hierarchical trees;
means for locating one or more sets of equivalent nodes in said hierarchical trees, if said sets of equivalent nodes exist;
means for picking one or more winning nodes from each set of said equivalent nodes; and
means for storing one or more reference nodes to said winning nodes.
-
Specification