How to use Perl to parse very big file without DB support?

來源: 德州老外 2006-08-21 16:40:41 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (229 bytes)
I am parsing lot of huge log files now. Just wander how to speed things up. I have to read in 3 files at the same time. One file is huge, 300+MB. I have 1.5GB RAM now. The process looks damn slow.

Anyone has good idea?

所有跟帖: 

Ever heard about mergesort? -ohlalala- 給 ohlalala 發送悄悄話 (0 bytes) () 08/21/2006 postreply 16:45:02

I haven't thought of sorting yet -德州老外- 給 德州老外 發送悄悄話 (129 bytes) () 08/21/2006 postreply 16:51:41

回複:I haven't thought of sorting yet -ohlalala- 給 ohlalala 發送悄悄話 (78 bytes) () 08/21/2006 postreply 16:53:13

be more specific pls -德州老外- 給 德州老外 發送悄悄話 (0 bytes) () 08/21/2006 postreply 17:02:09

哈哈,我知道怎麽玩了 -德州老外- 給 德州老外 發送悄悄話 (0 bytes) () 08/21/2006 postreply 17:33:00

老外不賴,學得挺快 -ohlalala- 給 ohlalala 發送悄悄話 (0 bytes) () 08/21/2006 postreply 18:44:20

速度還是提不上去,但是內存占用少多了。:D -德州老外- 給 德州老外 發送悄悄話 (0 bytes) () 08/21/2006 postreply 19:52:11

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”