2009年11月13日

Delphi - 反转内存的函数

摘要: [代码] 阅读全文

posted @ 2009-11-13 10:52 jxgxy 阅读(274) 评论(0) 推荐(0)

2009年11月12日

类: override

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:12 jxgxy 阅读(234) 评论(0) 推荐(0)

类: property

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:10 jxgxy 阅读(171) 评论(0) 推荐(0)

类的Create 与 Destroy

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:09 jxgxy 阅读(319) 评论(0) 推荐(0)

数字盒子

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:08 jxgxy 阅读(261) 评论(0) 推荐(0)

继承窗体

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:07 jxgxy 阅读(231) 评论(0) 推荐(0)

属性的自动完成

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:06 jxgxy 阅读(208) 评论(0) 推荐(0)

参数默认值

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:06 jxgxy 阅读(165) 评论(0) 推荐(0)

方法重载

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:05 jxgxy 阅读(245) 评论(0) 推荐(0)

抽象类

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:04 jxgxy 阅读(227) 评论(0) 推荐(0)

覆盖虚方法

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:03 jxgxy 阅读(220) 评论(0) 推荐(0)

类方法调用

摘要: [代码] 阅读全文

posted @ 2009-11-12 13:02 jxgxy 阅读(191) 评论(0) 推荐(0)

类成员可见性

摘要: private //不可见。protected //派生类可见。public //可见。published //可见。用于运行时信息。automated //可见。用于兼容。//在范围以外时:{$M+}(默认)时是 published;{$M-}时是 public 阅读全文

posted @ 2009-11-12 11:38 jxgxy 阅读(228) 评论(0) 推荐(0)

2009年11月11日

三十、详测 Generics Collections: TObjectList、TObjectQueue、TObjectStack

摘要: TObjectList<T>、TObjectQueue<T>、TObjectStack<T> 分别继承自:TList<T>、TQueue<T>、TStack<T>;它们是专门用于对象的列表, 都增加了一个 OwnsObjects 布尔属性, 决定对象会不会自动释放(这也通过 Create 的参数来决定)其他基本同它们的父类, ... 阅读全文

posted @ 2009-11-11 14:29 jxgxy 阅读(2225) 评论(0) 推荐(0)

二十九、详测 Generics Collections TDictionary(5): 多种 Create 手段

摘要: [代码] 阅读全文

posted @ 2009-11-11 14:28 jxgxy 阅读(1265) 评论(0) 推荐(0)

二十八、详测 Generics Collections TDictionary(4): OnKeyNotify、OnValueNotify

摘要: [代码] 阅读全文

posted @ 2009-11-11 14:27 jxgxy 阅读(647) 评论(0) 推荐(0)

二十七、详测 Generics Collections TDictionary(3): TPairEnumerator、TKeyEnumerator、TValueEnumerator、ExtractPair

摘要: [代码] 阅读全文

posted @ 2009-11-11 14:26 jxgxy 阅读(631) 评论(0) 推荐(0)

二十六、详测 Generics Collections TDictionary(2): ContainsKey、ContainsValue、AddOrSetValue、TryGetValue

摘要: [代码] 阅读全文

posted @ 2009-11-11 14:25 jxgxy 阅读(714) 评论(0) 推荐(0)

2009年11月10日

二十五、详测 Generics Collections TDictionary(1): Add、Items、Keys、Values、Remove

摘要: [代码] 阅读全文

posted @ 2009-11-10 11:14 jxgxy 阅读(925) 评论(0) 推荐(0)

2009年11月9日

二十四、详测 Generics Collections TStack(1): Push、Pop、Peek - 其他功能同 TQueue

摘要: [代码] 阅读全文

posted @ 2009-11-09 16:38 jxgxy 阅读(468) 评论(0) 推荐(0)

2009年11月5日

二十三、详测 Generics Collections TQueue (3): OnNotify、Extract

摘要: [代码] 阅读全文

posted @ 2009-11-05 14:54 jxgxy 阅读(385) 评论(0) 推荐(0)

二十二、详测 Generics Collections TQueue (2): Create、Count、Clear、TrimExcess

摘要: [代码] 阅读全文

posted @ 2009-11-05 14:52 jxgxy 阅读(444) 评论(0) 推荐(0)

二十一、详测 Generics Collections TQueue (1): Enqueue、Dequeue、Peek

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:17 jxgxy 阅读(492) 评论(0) 推荐(0)

二十、详测 Generics Collections TList (11): Create

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:06 jxgxy 阅读(483) 评论(0) 推荐(0)

十八、详测 Generics Collections TList (9): BinarySearch

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:05 jxgxy 阅读(410) 评论(0) 推荐(0)

十九、详测 Generics Collections TList (10): OnNotify 事件

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:05 jxgxy 阅读(316) 评论(0) 推荐(0)

十七、详测 Generics Collections TList (8): Sort

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:02 jxgxy 阅读(509) 评论(0) 推荐(0)

十六、详测 Generics Collections TList (7): Items、Contains

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:01 jxgxy 阅读(415) 评论(0) 推荐(0)

十五、详测 Generics Collections TList (6): Reverse、TrimExcess

摘要: [代码] 阅读全文

posted @ 2009-11-05 12:00 jxgxy 阅读(397) 评论(0) 推荐(0)

2009年11月4日

十四、详测 Generics Collections TList (5): Move、Exchange

摘要: [代码] 阅读全文

posted @ 2009-11-04 16:39 jxgxy 阅读(409) 评论(0) 推荐(0)

十三、详测 Generics Collections TList (4): AddRange、InsertRange、DeleteRange

摘要: [代码] 阅读全文

posted @ 2009-11-04 16:20 jxgxy 阅读(544) 评论(0) 推荐(0)

十二、详测 Generics Collections TList (3): Insert、Delete、Remove、Extract

摘要: [代码] 阅读全文

posted @ 2009-11-04 13:15 jxgxy 阅读(519) 评论(0) 推荐(0)

十一、详测 Generics Collections TList (2): First、Last、IndexOf、LastIndexOf

摘要: [代码] 阅读全文

posted @ 2009-11-04 10:15 jxgxy 阅读(425) 评论(0) 推荐(0)

十、详测 Generics Collections TList (1): Add、Clear、Count、Capacity

摘要: [代码] 阅读全文

posted @ 2009-11-04 10:05 jxgxy 阅读(696) 评论(0) 推荐(0)

九、泛型排序器 TComparer

摘要: [代码][代码] 阅读全文

posted @ 2009-11-04 10:04 jxgxy 阅读(656) 评论(0) 推荐(0)

八、使用泛型的 TArray 从动态数组中查找指定元素

摘要: [代码] 阅读全文

posted @ 2009-11-04 09:54 jxgxy 阅读(769) 评论(0) 推荐(0)

(转)DELPHI求乱序数组最小值快速算法(Delphi MMX优化算法应用之三)

摘要: [代码] 阅读全文

posted @ 2009-11-04 09:41 jxgxy 阅读(677) 评论(0) 推荐(0)

(转)DELPHI大内存清零快速算法(Delphi MMX优化算法应用之二)

摘要: 由于DELPHI里面动态数组的初始值并不是时时为0,对于一维数组每次使用前先SetLength后然一般做法都是使用FillChar来清零,但如果是超过几十M的数组如果FillChar来清零效率就很底,为此我专门写了一些清空数组或者内存的优化代码.[代码]以上两种代码经过测试发现50M上数据使用MMX效率要高于使用rep,50M下推荐使用Rep. 阅读全文

posted @ 2009-11-04 09:40 jxgxy 阅读(857) 评论(0) 推荐(0)

(转)一种高速内存校验算法(Delphi MMX优化算法应用之一)

摘要: 最近碰到一个项目需要对内存数据进行检测,确定是否和原始值一样,看了现成的算法MD5 CRC 等,感觉速度不太理想,因此动手自己写了用于检测内存数据的高速算法.该算法利用了CPU的MMX微指令的单指令多数据优点来提高校验速度.对于大数据量校验尤其明显.[代码]需要说明的是该算法有个缺陷,就是需要字节按64byte对齐,否则检测将不完整,可能出现对最后1-63byte不检测的情况,当然也可以修改上面算... 阅读全文

posted @ 2009-11-04 09:39 jxgxy 阅读(996) 评论(0) 推荐(0)

2009年11月3日

七、使用泛型的 TArray 为动态数组排序

摘要: [代码] 阅读全文

posted @ 2009-11-03 16:19 jxgxy 阅读(934) 评论(0) 推荐(0)

导航