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

补充:补充ffi.cast和ffi.string的使用技巧 #331

Open
Miss-you opened this issue Mar 12, 2021 · 0 comments
Open

补充:补充ffi.cast和ffi.string的使用技巧 #331

Miss-you opened this issue Mar 12, 2021 · 0 comments

Comments

@Miss-you
Copy link
Contributor

由于shared dict只能存储string
ffi.cast和ffi.string可以很方便且高效的序列化c的struct,性能比json好,比pb使用方便,在shared场景下很适合存储一些小对象,当然redis也是如此

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