由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] 如何能让这个程序快一点呢?太慢了
相关主题
mysql index优化求助如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?
天,如何能让程序转得快点?有包子。有什么方法可以优化hashtable?
How to concatenate two .tar.gz files大家怎么应付这样的同事?
大牛 in Perl and SED?这样读多个文件对吗?
python gc questionRe: [转载] 这样读多个文件对吗?
gvim diff question[转载] Re: [转载] 这样读多个文件对吗?
how to assign new value to loop variables?读取数据求教
A problem on string parsing (using either grep or perl)关于文件读取的C++ 问题?
相关话题的讨论汇总
话题: node2话题: node1话题: file话题: file2话题: 输出
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
shuo (说说罢了) 于 (Thu Sep 22 16:28:10 2005) 提到:
其实是很简单的问题。 两个file,一个file有 node1 node2 C 三个field。另一个
file是个lookup table有 node E F三个field。输出是, node1 node2 C E(node1
) F(node1) E(node2) F(node2). 就是为node1,2找对应的E, F然后全部输出的意思
。 可是我不太会写程序,只能写最简单最笨的。 所以我写乐下边这个。 都还没管node2
, 想着先把node1 得E,F输出出来到一个out.txt里边,然后在运行一遍给node2找对应的E
, F。可是因为我的file1很大,几十万条record。 这个程序运行了2个小时乐,才1/5多
点。 可能也是file I/O的问题。 可是如果我不开关file2, 我不知道怎么让file2的
ifstream指针回到文件最顶上。 结果就是他只查找一遍,然
1 (共1页)
进入Programming版参与讨论
相关主题
关于文件读取的C++ 问题?python gc question
问一个打开文件的问题gvim diff question
a very simple c++ questionhow to assign new value to loop variables?
有人能解释一下这段C++代码吗A problem on string parsing (using either grep or perl)
mysql index优化求助如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?
天,如何能让程序转得快点?有包子。有什么方法可以优化hashtable?
How to concatenate two .tar.gz files大家怎么应付这样的同事?
大牛 in Perl and SED?这样读多个文件对吗?
相关话题的讨论汇总
话题: node2话题: node1话题: file话题: file2话题: 输出