This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimize varuse_collecting_visitor::visit_embeddedcode by bool flags.


yichun wrote:

> The varuse_collecting_visitor::visit_embeddedcode() method currently
> spends a lot of CPU time on the string comparison operations for the
> memo_tagged_p() function. [...]

Thanks for looking at this issue.  Rather than inlining the logic
of all these tags into code sprinkled in multiple locations, what
do you think about an approach where

- the embedded_*::tagged_p() member functions look inside a member
  dictionary rather than a global string_find_memoized[] one?

or

- making the global string_find_memoized[] map a hash table rather
  than the default rbtree?

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]