惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
Jina AI
Jina AI
博客园 - Franky
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
NISL@THU
NISL@THU
AWS News Blog
AWS News Blog
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
P
Privacy International News Feed
G
GRAHAM CLULEY
量子位
宝玉的分享
宝玉的分享
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 【当耐特】
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
T
Threatpost
N
News and Events Feed by Topic
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
B
Blog RSS Feed
Schneier on Security
Schneier on Security
Vercel News
Vercel News
Martin Fowler
Martin Fowler
T
The Exploit Database - CXSecurity.com
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
V2EX - 技术
V2EX - 技术
S
Securelist
Stack Overflow Blog
Stack Overflow Blog
The Last Watchdog
The Last Watchdog
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

博客园 - FireReprt◇FireScript地带

3ds文件转换为.X文件 MD5加密 [转载]使用SQL直接从sps数据库中恢复文档 SPS恢复问题: [ 提示数据库架构太旧问题 ] 运算符的优先级别 补上一个测试精灵动画的列子 - FireReprt◇FireScript地带 - 博客园 关于CSGL跟FireScript的连接 脚本中类的声明 加入了两个终结符号 - FireReprt◇FireScript地带 - 博客园 脚本支持数组初始化了 - FireReprt◇FireScript地带 - 博客园 IF语句多分支识别 用自定义函数来实现代理类的实例化 测试递归 测试运行效率 加入了静态类的语义分析引擎 FireScript调用DLL和COM FireScript在SharePoint中的应用 识别字符串中的表达式(续二) 识别字符串中的表达式(续一)
这是我在C#中测试速度的代码
FireReprt◇FireScript地带 · 2006-03-29 · via 博客园 - FireReprt◇FireScript地带

 1    int t_rowNum = 10000 ;
 2            int t_column = 1000 ; 
 3            Console.WriteLine("测试创建一个{0}行{1}列的表需要多少时间:",t_rowNum,t_column);
 4            DataTable dt = new DataTable();
 5            DateTime t1 = DateTime.Now ;
 6                DataColumn dc ;
 7            forint c= 0 ;c< t_column  ; c++ )
 8            {
 9                dc = new DataColumn("c"+c);
10            
11                dt.Columns.Add( dc );
12            
13            }

14            DateTime t2 = DateTime.Now ;
15
16            Console.WriteLine("列已经创建,耗时:"+(t2-t1).Milliseconds+"毫秒");
17
18            DateTime t3=DateTime.Now ;
19            DateTime t4 =DateTime.Now;
20
21            DateTime t5=DateTime.Now ;
22            DataRow dr ;
23            for(int r=0;r<t_rowNum;r++)
24            {
25                if ( r == 0 )
26                    t3 = DateTime.Now;
27                  dr = dt.NewRow();
28                forint c=0;c<t_column;c++)
29                {
30                    dr[c]="hahshisadadaihdiashd"+c+":"+r ;
31                
32                }

33                dt.Rows.Add(dr);
34                 
35                if ( r== 0 )
36                {
37                    t4 = DateTime.Now ;
38                    Console.WriteLine("正在创建行,预计耗时:"+((t4-t3).Milliseconds*t_rowNum)+"毫秒");
39                }

40            }

41            DateTime t6 =DateTime.Now;
42
43            Console.WriteLine("行已经创建,耗时:"+((t6-t5).TotalSeconds)+"");
44
45            Console.ReadLine();

这个还是要耗用900多M内存~