You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symbol has a public raw_kind method. But it's hard to do anything with the return value because it's a raw number and none of the constants you could compare it to are exposed.
I'd like to use raw_kind so that I can avoid calling parse on symbols which I intend to skip, for better performance. (Profile)
Thanks that makes sense. The only issue I see with this is that it requires you to know the raw kinds for each of the symbols you'd like to parse. I'll tinker on this to see if I find a more convenient API.
Exposing the constants makes sense regardless. So far, we have them all exposed in enums like CPUType, which are great to match on, but not to work with as values. I'm now thinking of exposing them similar to gimli's constants module, in a typed yet open fashion.
Exposing the constants makes sense regardless. So far, we have them all exposed in enums like CPUType, which are great to match on, but not to work with as values. I'm now thinking of exposing them similar to gimli's constants module, in a typed yet open fashion.
Symbol
has a publicraw_kind
method. But it's hard to do anything with the return value because it's a raw number and none of the constants you could compare it to are exposed.For example, there are no results when searching the docs for
S_PUB32
.I'd like to use
raw_kind
so that I can avoid callingparse
on symbols which I intend to skip, for better performance. (Profile)The text was updated successfully, but these errors were encountered: