]> sourceware.org Git - systemtap.git/commit
Use proper set operations for symtab dupe checks
authorJosh Stone <jistone@redhat.com>
Mon, 2 Dec 2013 22:34:07 +0000 (14:34 -0800)
committerJosh Stone <jistone@redhat.com>
Mon, 2 Dec 2013 22:34:07 +0000 (14:34 -0800)
commita41f2ad77a642e70f46caa8261746c651f5dc2ad
treee920f747a19b5af7a714afc5e1778941c3b4f783
parentc08d4d26c6c9b4448f397fd2eaf0108a0c1fae64
Use proper set operations for symtab dupe checks

In query_symtab_func_info, rather than full set iteration to check an
address in alias_dupes, just use set::insert().second as a test.  This
is what sets are designed to be algorithmically good at.

This also has the benefit of adding to alias_dupes, so duplicates within
the symbol table itself will still only be probed once.  (If we didn't
want that effect, we would just use set::count() to test membership.)
tapsets.cxx
This page took 0.0261169999999999 seconds and 5 git commands to generate.