Skip to content

Improve TypeManager.function/TypeManager.virtual_function fetch speed by using cache. #479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed virtual_function to use a function cache that already exists.
  • Loading branch information
CookStar committed Jun 21, 2023
commit 07e7bba3ecee6bcb3b3e4e241c13d2b7e6e0e56f
5 changes: 5 additions & 0 deletions addons/source-python/packages/source-python/memory/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,11 @@ def fget(ptr):
args,
return_type
)
for func_cache in funcs.values():
if func_cache == func:
func = func_cache
break

funcs[address] = func

# Wrap it using MemberFunction, so we don't have to pass the this
Expand Down