
C#
mathgl
这个作者很懒,什么都没留下…
展开
-
bind parameters in SqlCommand...
for sql server 2005 (tested) use batch insert with binding parameters like following: comm.Parameters.Add("@val", System.Data.SqlDbType.Binary, temp.Length).Value = temp; comm.ExecuteNonQue...原创 2010-06-03 15:58:47 · 130 阅读 · 0 评论 -
mono,.net,异步socket
.net的异步 socket有两种形式 1,和其他async io类似的 iasyncresult 2,3.5后新增的socketasyncargs。。 据msdn说 第二种的性能有极大的提高。。我简单测试过。。在 accept socket这里,,速度是很快,大约为前者的3-4倍 测试环境 win xp sp3前者 1秒钟大约能accept 500个sock...原创 2010-09-19 16:14:39 · 241 阅读 · 0 评论 -
kyoto cabinet, swig, .net
kyoto cabinet是个有趣的东西,,很小一个,性能不错。写了一个简单的类封装了 部分 操作,今天使用swig 生成了一个 .net的 proxy。这样 现有的程序便可以直接使用了。 下一步 开始研究 kyoto cabinet的代码,打算实现一个 pure .net的版本。。 .net 4.0 自带了不少好东西,对于io操作的性能 和 native c++ 速...原创 2010-09-25 19:57:40 · 117 阅读 · 0 评论 -
VS2010使用感受
工作的关系,现在使用ms的工具越来越多。从最早的vs 6.0开始到现在的vs 2010。目前给我感觉最好的还是vs 2010虽然很多人抨击说还不如vs6.0。 今年技术新闻唯一让我感到有些兴奋的还是.net 4.0和vs2010的发布。 工作所需,对并发,并行还有一些性能相关的技术较为关注。.net 4.0的到来带来了tpl. 以前的工作很容易使用tasks将其分解。最近花了一...原创 2010-10-17 18:05:37 · 525 阅读 · 0 评论 -
mono 2.10 gc测试
还是用了上次那个小程序来测试gc。。目前只是测试了在windows 7 下的表现。 默认的gc可以跑完小程序。但是内存依然很高,估计和其策略有关。 性能方面。和.net 4.0比较 大约慢了 20%..内存占用高达 1.4g。。是.net的几十到上百倍。 下一步测试 async socket..看Log也是这次改进之列。 update: 在ubuntu ...原创 2011-02-19 01:34:07 · 102 阅读 · 0 评论 -
JValue supports 32 bit integer with bson
Json.net supports Bson however JValue convert every integer value to int64 bit.. In bson. int32 need 4 bytes and int64 need 8 bytes...so there is a room to improve it. find JValue.cs ad...原创 2012-05-17 16:42:25 · 96 阅读 · 0 评论 -
cross compile mono for windows.
on ubuntu prerequisities: 1 build-essential2 autoconf3 libtool4 gettext5 gcc-mingw32 download the latest source package. and run ./build-mingw32.sh -d /usr/i586-mingw32msvc...原创 2012-09-27 12:24:12 · 154 阅读 · 0 评论