dongzhuohan7085 2011-04-12 04:36
浏览 86
已采纳

从源代码编译到预编译的Windows二进制文件

So in the past I've always used the pre-compiled Windows PHP binaries but then this guide caught my attention.

That brings me to this:

  • Why would someone want to compile PHP from the sources when the binaries are available for them?
  • Is there a performance bonus I should be aware of?
  • If so, is it a significant enough amount that I should take notice?

For reference, I use PHP for mostly CLI applications mainly for bulk data processing and some website info collection.
My system specs: Windows 7 x64, 6gb RAM, Intel Q6600 (2.4gHz x 4).

  • 写回答

3条回答 默认 最新

  • dongre8505 2011-04-12 04:42
    关注

    There are three good reasons I can think of for compiling PHP rather than using a binary build on Windows:

    • you need a compiled in extension or compile-time-option that does not come as standard with available binaries

    • you are short of memory and need a leaner PHP executable devoid of extensions you do not use

    • you want a binary compiled specifically for your processor/environment to gain the small performance boost this might achieve (possible if you have an unusual setup)

    Otherwise, just stick with the binary.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 对于知识的学以致用的解释
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败