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

[UE] 优化:统一通过FunctionTemplate->InstanceTemplate()->NewInstance实现FindOrAdd #1496

Closed
chexiongsheng opened this issue Aug 31, 2023 · 0 comments

Comments

@chexiongsheng
Copy link
Collaborator

chexiongsheng commented Aug 31, 2023

最开始是通过一个v8::External参数调用构造函数实现。
后面UObject和FStruct改为FunctionTemplate->InstanceTemplate()->NewInstance( 5d239cd ),性能有提升,代码也可以简化,而且可以减少v8::External的使用:https://github.com/Tencent/puerts/issues/1497。

但目前像容器之类还没改成新方式,统一改掉

@chexiongsheng chexiongsheng changed the title [UE] 优化:统一通过FunctionTemplate->InstanceTemplate()->NewInstance在原生构造对象 [UE] 优化:统一通过FunctionTemplate->InstanceTemplate()->NewInstance实现FindOrAdd Sep 4, 2023
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

No branches or pull requests

1 participant