The variables are guaranteed to be laid out
contiguously, as in C. However, the access blocks may not appear in the object
in the order that you decla...
分类:
数据库 时间:
2014-05-01 04:11:22
阅读次数:
543
这几天着手解决程序的性能优化。什么是系统性能,包括什么,就不说了,放google搜一下就有了。找到了酷壳里的两篇文章《代码优化概要》、《性能调优攻略》以及阿姆达尔定律,有几点体会:1.阿姆达尔定律是说对某一个模块的改进对系统性能的优化程度,取决于该模块的调用频率,或者该模块的执行时间占程序总执行的比...
分类:
其他好文 时间:
2014-05-01 04:03:07
阅读次数:
337
当CPU发出写操作命令时,也要根据它产生的主存地址分为两种情形:一种是不命中时,只向主存写入信息,不必同时把这个地址单元所在的整块内容调入Cache中;另一种是命中时,这时会遇到如何保持Cache与主存的一致性问题,通常有三种处理方式:
1.直写式(write through)即CPU在向C...
分类:
其他好文 时间:
2014-05-01 03:57:54
阅读次数:
393
我们经常使用到的System.out.println(),println()是一个方法(Method),而System是系统类(Class),out是标准输出对象(Object)。这句话的用法是调用系统类System中的标准输出对象out中的方法println()。Java
方法是解决一列重复步.....
分类:
编程语言 时间:
2014-05-01 03:56:57
阅读次数:
336
0. 引言---回忆(1) Cauchy 积分公式 (第三章) $$\beex \bea
f\mbox{ 在 }D\mbox{ 内解析}, \mbox{ 在 }\bar D=D+\p D\mbox{ 上连续}&\ra \int_C
\cfrac{f(z)}{z-a}\rd z=2\pi if(a),...
分类:
其他好文 时间:
2014-05-01 03:47:46
阅读次数:
352
package algorithm.sort;public class QuickSort {
public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4,
9, 8, 6, 1}; sort(a); ...
分类:
其他好文 时间:
2014-05-01 03:33:20
阅读次数:
330
C语言里的sizeof关键字用于返回变量的类型宽度(变量所占的字节个数)。例如:#include
int main() {int i = 0;int size = sizeof i;printf("size of i is: %d",size);return
0;}会在控制台打印出int类型的变量i...
分类:
其他好文 时间:
2014-05-01 03:29:15
阅读次数:
316
1、IN操作符用IN操作符写出来的SQL直观简单、易于理解。但是在where条件中使用IN操作符是低效的。例如下面这条查询语句:SELECT
* FROM tab_a WHERE id IN(SELECT a_id FROM tab_b);
你认为它会怎么执行呢?先从tab_a表中遍历数据,然后拿每...
分类:
数据库 时间:
2014-05-01 03:28:11
阅读次数:
756
package algorithm.sort;public class CountingSort {
public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4,
9, 8, 6, 1}; int[] ...
分类:
其他好文 时间:
2014-05-01 03:25:05
阅读次数:
252
package algorithm.sort;public class HeapSort {
public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4,
9, 8, 6, 1}; sort(a); p...
分类:
其他好文 时间:
2014-05-01 03:24:04
阅读次数:
332