- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 readline库的使用
接口十分简单,readline和addhistory: #include #include #include #include #include int main() { char* input, shell_prompt[100]; // Configure readline to auto-complete paths whe
2014-11-19 23:26:01
2954
原创 CharsRefIntHashMap并不比HashMap<String, Integer>快
我模仿lucene的BytesRef写了一个CharsRefIntHashMap,实测效果并不如HashMap。代码如下: package com.dp.arts.lucenex.utils; import org.apache.lucene.util.CharsRef; public interface CharsRefIntMap {
2014-11-12 23:29:00
1249
原创 GNUPlot绘制曲线
发现gnuplot在mac上编译安装相当方便,在线下为了测试java老堆和lucene索引大小,需要绘制两条线,但是直接点连的线非常难看,所以后面使用贝塞尔曲线。 脚本如下: #! /usr/local/bin/gnuplot -p set terminal canvas; set output "canvas.html" set title "Illustration";
2014-11-08 09:23:08
3729
Scons User Guide 2.01
2011-05-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人