V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
UnrealEngine
V2EX  ›  PHP

PHPExcel_IOFactory::load 一张 1MB 的表格 xlsx 时巨卡要花 20s

  •  
  •   UnrealEngine · May 24, 2023 · 2370 views
    This topic created in 1069 days ago, the information mentioned may be changed or developed.

    应该跟环境有关,但是我不知道要咋排查……

    测试环境下 1s 搞定,但是线上环境卡得比较久

    PHP 版本相同都是 5.3.27

    7 replies    2023-05-24 21:36:30 +08:00
    infreboot
        1
    infreboot  
       May 24, 2023
    好歹升级到 7 啊。。。5.3
    asuraa
        2
    asuraa  
       May 24, 2023
    .. 5.3 肯定卡啊... 马上要发布的 debian 12 默认 php 都要到 8.2 了
    kenvix
        3
    kenvix  
       May 24, 2023
    5.3 ,你说这是十年前的帖子我都信
    deltadawn
        4
    deltadawn  
       May 24, 2023   ❤️ 1
    是不是 opcache 没开,打印 phpinfo,对比一下配置
    xuelu520
        5
    xuelu520  
       May 24, 2023
    你写段加载图片啥的代码试试,是不是读取磁盘文件太慢了?
    assad
        6
    assad  
       May 24, 2023
    https://xlswriter.viest.me/
    用它吧,可以解决你的问题
    hehe00
        7
    hehe00  
       May 24, 2023 via iPhone
    好像有个什么逐行加载设置来着
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1004 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 19:08 · PVG 03:08 · LAX 12:08 · JFK 15:08
    ♥ Do have faith in what you're doing.