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

关于Push枚举类型的GCAlloc问题 #234

Open
craftoq opened this issue May 17, 2021 · 0 comments
Open

关于Push枚举类型的GCAlloc问题 #234

craftoq opened this issue May 17, 2021 · 0 comments

Comments

@craftoq
Copy link

craftoq commented May 17, 2021

求问为什么tolua没有针对枚举值传递做GC优化,比如转换成int、long等对应的underlying类型。

现在不做处理的情况下,枚举值会转换成Enum后作为userdata传给lua,有boxing的开销,并且要交给ObjectTranslator管理

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