2008 November 14th Friday (十一月 十四日 金曜日)
来源:互联网 发布:精准扶贫数据平台 编辑:程序博客网 时间:2024/04/29 10:48
I found out a bug in the LZMA SDK for Java. I don't know whether the author test it. When I run it after compiled it, Java VM tell me an exception on
out of memory. I felt so strange. How much memory a compression tool needs? After debuging, I found out there is a variable _dictionarySize is initialize
with a so big number -- 2 ^ 22. My god! That is why Java can not initialize an integer array with it.
I cut half of that down. OK. The program can run correctly. I tried making a compression archive, and restored it correctly.
I can read the source of the LZMA in Java. By the way, the algorithm implemented in C++ is so hard to read.
out of memory. I felt so strange. How much memory a compression tool needs? After debuging, I found out there is a variable _dictionarySize is initialize
with a so big number -- 2 ^ 22. My god! That is why Java can not initialize an integer array with it.
I cut half of that down. OK. The program can run correctly. I tried making a compression archive, and restored it correctly.
I can read the source of the LZMA in Java. By the way, the algorithm implemented in C++ is so hard to read.
- 2008 November 14th Friday (十一月 十四日 金曜日)
- 2008 November 21th Friday (十一月 二十一日 金曜日)
- 2008 November 28th Friday (十一月 二十八日 金曜日)
- 2008 November 24th Monday (十一月 二十四日 月曜日)
- 2008 November 10th Monday (十一月 十日 月曜日)
- 2008 November 11th Tuesday (十一月 十一日 火曜日)
- 2008 November 18th Tuesday (十一月 十八日 火曜日)
- 2008 November 25th Tuesday (十一月 二十五日 火曜日)
- December 14th Friday (十二月 十四日 金曜日)
- 2008 October 24th Friday (十月 二十四日 金曜日)
- August 24th Friday (八月 二十四日 金曜日)
- April 24th Friday (四月 二十四日 金曜日)
- July 24th Friday (七月 二十四日 金曜日)
- November 13th Friday
- November 20th Friday
- 2008 November 12th Wednesday (十一月 十二日 水曜日)
- 2008 November 13th Thursday (十一月 十三日 木曜日)
- 2008 November 17th Monday (十一月 十七日 月曜日)
- 2008 November 12th Wednesday (十一月 十二日 水曜日)
- Oracle 中设置位的值函数SETBIT(原创)
- 学习java的心得
- 2008 November 13th Thursday (十一月 十三日 木曜日)
- Flash手机抽奖程序设计:抽奖操作
- 2008 November 14th Friday (十一月 十四日 金曜日)
- 2008 November 17th Monday (十一月 十七日 月曜日)
- 金融危机下绿色IT灭亡了吗?
- 崩溃,崩溃
- ml.err 错误的解决方案
- 2008 November 18th Tuesday (十一月 十八日 火曜日)
- Beginning Database Design: From Novice to Professional
- 2008 November 19th Wednesday (十一月 十九日 水曜日)
- Md5 与 Sha 如何将大于64字节的数据分成多块