2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

Add note to Memory Allocations that the symbol tables are implemented using a

trie, and that those have lots of allocated nodes.
This commit is contained in:
Zach Laine
2024-03-03 15:44:07 -06:00
parent 9f46597ea9
commit a07efbbd72

View File

@@ -3499,7 +3499,9 @@ Some things to be aware of when looking at _Parser_ trace output:
_Parser_ seldom allocates memory. The exceptions to this are:
* _symbols_ allocates memory for the symbol/attribute pairs it contains. If
symbols are added during the parse, allocations must also occur then.
symbols are added during the parse, allocations must also occur then. The
data structure used by _symbols_ is also a trie, which is a node-based tree.
So, lots of allocations are likely if you use _symbols_.
* The error handlers that can take a file name allocate memory for the file
name, if one is provided.