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

GeeCache LRU 中获取占用内存应该用Sizeof函数不应该用Len() #70

Open
MaXiaoYang6 opened this issue May 4, 2023 · 2 comments

Comments

@MaXiaoYang6
Copy link

String类型所占用的内存大小应该用SIzeof来获取,不应该用Len()

@KreanXie
Copy link

Len()是用来获取长度的呀,不是用来获取内存大小的

@linabellbiu
Copy link

应该用SIzeof来计算吧

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

3 participants