Description
The figure and heading numbering cache doesn't improve the performance as the computation of the key for the cache needs to traverse the XDOM - in this time, the figure or heading numbers could also be computed directly. Further, after every macro execution, the XDOM is changed and thus there will be as many cache entries as there are reference macros in the page. Further, there is currently no handling for hash key collisions (hash codes are used as keys for the cache), meaning that the cache might actually break things.