pyRXP的元组树数据结构。
可以分析rxp . c文件的源代码,以了解rxp解析生成紧凑文档树作为数据结构的方法。
You can look through the source code for the file rxp.c to see the way that RXP parsing generates a compact document tree as a data structure.
这个数据结构是一个“红-黑”树,对于注重性能的应用程序很理想(且恰好作为内核中的一个库普遍可用)。
The data structure used is a red-black tree, which is ideal for performance-focused applications (and happens to be available generically as a library within the kernel).
应用推荐