tcp_nopush高性能
摘要:nginx sendfile tcp_nopush tcp_nodelay参数解释
阅读全文
go build -ldflags
摘要:http://studygolang.com/articles/2052 ldflags 用法:【路径,非必需,除非你有目录层次】包名.变量 [path]packege.value go build -ldflags "-X other.VERSION=1.0.0 -X gpxj/other.VER
阅读全文
把文本数据转化为json
摘要:awk '{for (i=1 ;i<=NF;i++){ printf "\"" $i; if ( i==NF) {printf "\","} else {printf "\":"}}; printf "\n" }' awk_file.txt cat awk_file.txt 100001 AAA 1
阅读全文
componentsSeparatedByString 的注意事项
摘要:componentsSeparatedByString 两种情景 1. 没有分割符也生成一个数组,元素就是整个字符串本身,那你就需要判断“”这种字符串。 2. 分割的元素如果是相同的字符串,指向的是同一个对象。
阅读全文
内存管理
摘要:http://www.iteye.com/news/32364
阅读全文