使用Apache POI eventmodel实现一个Excel流式读取类,目标是100万,每行46列的,文件大小152MB的Excel文件能在20s读取并处理完。一开始实现的程序需要260s,离目标差太远了,使用jvisualvm分析各方法执行时间,结果如下:可以看到,程序中的splitLine和...
分类:
编程语言 时间:
2014-07-27 23:23:09
阅读次数:
348
3C. Substring FrequencyTime Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%lld Java class name:MainA string is a finite sequence of symbo...
分类:
其他好文 时间:
2014-07-27 22:33:49
阅读次数:
319
#include #include#includeusing namespace std;#define maxn 10100#define cls(x) memset(x, 0, sizeof(x))//好了,感觉上面的这个变得更加的牛逼了,直接是让大家看起来是像调用了一个函数的样子,然后就得到了...
分类:
其他好文 时间:
2014-07-27 22:28:49
阅读次数:
220
The “Hype Cycle for Emerging Technologies” report is the longest-running annual Hype Cycle, providing a cross-industry perspective on the technologies...
分类:
其他好文 时间:
2014-07-27 11:00:12
阅读次数:
290
英文稿:The “Hype Cycle for Emerging Technologies” report is the longest-running annual Hype Cycle, providing a cross-industry perspective on the technolo...
分类:
其他好文 时间:
2014-07-27 10:59:02
阅读次数:
413
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-07-27 10:25:42
阅读次数:
179
题目:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The lon....
分类:
编程语言 时间:
2014-07-26 14:50:11
阅读次数:
226
题目:Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the....
分类:
编程语言 时间:
2014-07-26 09:55:27
阅读次数:
204
Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum element ...
分类:
其他好文 时间:
2014-07-25 11:06:41
阅读次数:
242
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:
其他好文 时间:
2014-07-25 03:40:54
阅读次数:
305