diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-05-14 08:01:03 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-05-14 08:04:06 -0700 |
commit | f828eae3eaca02c9659d63cbcab65c9dd8e13869 (patch) | |
tree | 71347971f8e7c857f49f2f7a2d4ecaef390e939f /README.md | |
parent | 01f627a4d75ae25850bc29df74112696da571326 (diff) |
Implement xml_node::attribute with a hint
Extra argument 'hint' is used to start the attribute lookup; if the attribute
is not found the lookup is restarted from the beginning of the attriubte list.
This allows to optimize attribute lookups if you need to get many attributes
from the node and can make assumptions about the likely ordering. The code is
correct regardless of the order, but it is faster than using vanilla lookups
if the order matches the calling order.
Fixes #30.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions