polytracker icon indicating copy to clipboard operation
polytracker copied to clipboard

Improve function name logging during function tracking

Open surovic opened this issue 2 years ago • 0 comments

In the current implementation fast path, each function entry would have to

  1. strlen(function-name)
  2. acquire lock
  3. lookup function name map (compute hash)
  4. return index

Couldn't all this information be known at compile time? I don't think we should change the current approach, but rather think about if we should do a follow up PR that tries to shift as much work as possible to compile time.

Originally posted by @hbrodin in https://github.com/trailofbits/polytracker/pull/6473#discussion_r971663568

surovic avatar Sep 15 '22 12:09 surovic