Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

修复语句不通顺问题 #1181

Merged
merged 1 commit into from
Apr 9, 2023
Merged

修复语句不通顺问题 #1181

merged 1 commit into from
Apr 9, 2023

Conversation

yanggangtony
Copy link
Contributor

修复语句不通顺问题,有点不通顺呢:joy::joy:

Signed-off-by: yanggang <gang.yang@daocloud.io>
@@ -61,7 +61,7 @@ int* foo() {

读取方面:得益于 CPU 高速缓存,使得处理器可以减少对内存的访问,高速缓存和内存的访问速度差异在 10 倍以上!栈数据往往可以直接存储在 CPU 高速缓存中,而堆数据只能存储在内存中。访问堆上的数据比访问栈上的数据慢,因为必须先访问栈再通过栈上的指针来访问内存。

因此,处理器处理和分配在栈上数据会比在堆上的数据更加高效
因此,处理器处理分配在栈上数据会比在堆上的数据更加高效
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
因此,处理器处理分配在栈上数据会比在堆上的数据更加高效
因此,相对于分配在堆上的数据,处理器处理栈上的数据会更加高效

感谢,我稍微修改了下

@sunface sunface merged commit 614e03d into sunface:main Apr 9, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants