How to open a huge excel file efficiently

前端 未结 11 752
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 21:29

I have a 150MB one-sheet excel file that takes about 7 minutes to open on a very powerful machine using the following:

# using python
import xlrd
wb = xlrd.open_         


        
11条回答
  •  梦谈多话
    2021-01-30 21:47

    Another way that should improve largely the load/operation time is a RAMDrive

    create a RAMDrive with enough space for your file and a 10%..20% extra space...
    copy the file for the RAMDrive...
    Load the file from there... depending on your drive and filesystem the speed improvement should be huge...

    My favourite is IMDisk toolkit
    (https://sourceforge.net/projects/imdisk-toolkit/) here you have a powerfull command line to script everything...

    I also recommend SoftPerfect ramdisk
    (http://www.majorgeeks.com/files/details/softperfect_ram_disk.html)

    but that also depends of your OS...

提交回复
热议问题