chapter_array_and_linkedlist/ram_and_cache/ #967
Replies: 19 comments 21 replies
-
这是新的吗 |
Beta Was this translation helpful? Give feedback.
-
那么问题来了,未来的数字生命是存在哪种介质中的呢? |
Beta Was this translation helpful? Give feedback.
-
Quote: 内存是有限的,且同一块内存不能被多个程序共享 |
Beta Was this translation helpful? Give feedback.
-
算法是如此奇妙 |
Beta Was this translation helpful? Give feedback.
-
数组的存储空间是连续 指的是在 虚拟内存上,然而,在物理内存中,数组可能并不连续。虚拟内存到物理内存的映射涉及到分页(paging)技术。 |
Beta Was this translation helpful? Give feedback.
-
请问一下 手机缓存也会断电后数据会丢失吗? |
Beta Was this translation helpful? Give feedback.
-
太喜欢整本书的绘图了,比如这里的图 4-10,请问这是什么风格?这都是自己绘制的吗? |
Beta Was this translation helpful? Give feedback.
-
可以增加个 lru 缓存 楼主大大 用链表的那种,我可以给你复制上去 😁 |
Beta Was this translation helpful? Give feedback.
-
非常好的解释了为什么数组的效率会高很多,谢谢,之前一直不知道为什么C语言就快速,应该是因为C操作数组的能力很强(缓存命中率会高和内存中的memory碎片化),现在从这方面理解,Python的数组都是list,实际上是动态数组,会比C慢,当然C快应该还有很多其他的因素。 |
Beta Was this translation helpful? Give feedback.
-
太厉害了, 语言组织能力好强, 终于懂了大一没学明白的内存 |
Beta Was this translation helpful? Give feedback.
-
该章节涉及计算机系统和计算机组成原理,推荐《深入理解计算机系统》。 |
Beta Was this translation helpful? Give feedback.
-
各位道友好: |
Beta Was this translation helpful? Give feedback.
-
day3 |
Beta Was this translation helpful? Give feedback.
-
day2 |
Beta Was this translation helpful? Give feedback.
-
day1 |
Beta Was this translation helpful? Give feedback.
-
这里介绍的是 CPU缓存的数据加载机制,不能完全等价于那种程序运行时在硬盘中缓存计算中间结果的机制。 |
Beta Was this translation helpful? Give feedback.
-
continue |
Beta Was this translation helpful? Give feedback.
-
4.4.1 章节 “如图 4-10 所示,在程序运行时,数据会从硬盘中被读取到内存中,供 CPU 计算使用。缓存可以看作 CPU 的一部分,它通过智能地从内存加载数据,给 CPU 提供高速的数据读取,从而显著提升程序的执行效率,减少对较慢的内存的依赖。” 这句话中的“智能地”不太理解,是特有的概念?还是书写错误? |
Beta Was this translation helpful? Give feedback.
-
“缓存未命中”越少,CPU 读写数据的效率就越高,程序性能也就越好??? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
chapter_array_and_linkedlist/ram_and_cache/
动画图解、一键运行的数据结构与算法教程
https://www.hello-algo.com/chapter_array_and_linkedlist/ram_and_cache/
Beta Was this translation helpful? Give feedback.
All reactions