Skip to content
Snippets Groups Projects
  • Per Hedbor's avatar
    135db46f
    Optimized has_index for mappings and multiset · 135db46f
    Per Hedbor authored
    It is now way faster for mappings (in testing about 2x) and somewhat
    faster for multisets. Since our developers have a tendency to write
    if(has_index(map,key)) instead of if(mapping[key]) this can be a
    noticeable gain.
    135db46f
    History
    Optimized has_index for mappings and multiset
    Per Hedbor authored
    It is now way faster for mappings (in testing about 2x) and somewhat
    faster for multisets. Since our developers have a tendency to write
    if(has_index(map,key)) instead of if(mapping[key]) this can be a
    noticeable gain.