|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
there two very big, text file, a few million lines each, fileA and fileB.a perl task to sort the same line content in both files
for instance, line 3 of fileA has the line read
abdce fghijklmnop\n
and in fileB
abdce fghijklmnop\n
happened to be line 30,000
the perl script is going to pick out those lines and printout
That should be easy, exhaustively search fileB for each line of fileA
But the process time would be very long, for very big fileA and fileB
Is there a way in perl to speed up the processing.
split up one file to parallel process using multiple cpu should be one way.
Do we other ways? in perl?
please help |
|