Skip to content
Snippets Groups Projects
  • Arseny Kapoulkine's avatar
    f828eae3
    Implement xml_node::attribute with a hint · f828eae3
    Arseny Kapoulkine authored
    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.
    f828eae3
    History
    Implement xml_node::attribute with a hint
    Arseny Kapoulkine authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.