What is the fastest way to read 10 GB file from the disk?

后端 未结 13 3421
你的背包
你的背包 2021-02-20 01:19

We need to read and count different types of messages/run some statistics on a 10 GB text file, e.g a FIX engine log. We use Linux, 32-bit, 4 CPUs, Intel, coding in Perl but the

13条回答
  •  Happy的楠姐
    2021-02-20 01:51

    Perhaps you've already read this forum thread, but if not:

    http://www.perlmonks.org/?node_id=512221

    It describes using Perl to do it line-by-line, and the users seem to think Perl is quite capable of it.

    Oh, is it possible to process the file from a RAID array? If you have several mirrored disks, then the read speed can be improved. Competition for disk resources may be what makes your multiple-threads attempt not work.

    Best of luck.

提交回复
热议问题