文件名称:123
介绍说明--下载内容均来自于网络,请自行研究使用
这段代码把搜索到的记录和第一个记录互换,如果同一个记录连续被访问,那么只用做一次比较,提高了性能。但如果两个记录交互被访问,如1 2 1 2 1 2……,那么性能就会下降了。我们来看一个模拟LRU的代码:
-The code to search for records and records of the first exchange, if a row with a record of being accessed, then just do a comparison, the improved performance. However, if two records interactive visited, such as 121,212 ... ..., then the performance will be dropped. We look at a simulated LRU code:
-The code to search for records and records of the first exchange, if a row with a record of being accessed, then just do a comparison, the improved performance. However, if two records interactive visited, such as 121,212 ... ..., then the performance will be dropped. We look at a simulated LRU code:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
123.txt