Skip to content
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

Add object typecheck to avoid unnecessary proxy method calls #6

Open
oamaok opened this issue Jul 30, 2021 · 0 comments
Open

Add object typecheck to avoid unnecessary proxy method calls #6

oamaok opened this issue Jul 30, 2021 · 0 comments

Comments

@oamaok
Copy link
Owner

oamaok commented Jul 30, 2021

Also reference the obj, not the proxy. Faster access, as access to the proxy variable will always go through then handler.

proxy[key] = proxy[key]

@oamaok oamaok changed the title Add object typecheck to avoid unnecessary calls Add object typecheck to avoid unnecessary proxy method calls Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant