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

修复静态函数每次调用的时候会查两次对象属性 #1654

Merged
merged 1 commit into from
Feb 4, 2024
Merged

修复静态函数每次调用的时候会查两次对象属性 #1654

merged 1 commit into from
Feb 4, 2024

Conversation

BlurryLight
Copy link
Contributor

发现使用静态方法始终比使用成员方法慢一些,调查以后发现每次访问 UE.XXX的时候都会查两次classwrapper内的值。

UE.TestClass.StaticAdd(1,2)

@chexiongsheng
Copy link
Collaborator

可以可以,高质量PR

@chexiongsheng chexiongsheng merged commit 9cfaae9 into Tencent:master Feb 4, 2024
@chexiongsheng
Copy link
Collaborator

if (!value)会有点问题,value是0,""也会进入
比如UE.BuiltinBool是预先设置的,值为0。

@chexiongsheng
Copy link
Collaborator

更彻底的改法:#1884

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants