[英]How can I reduce time to generate PDF dynamically using PHP?
Are you running this code on recent hardware? 您是否在最近的硬件上运行此代码?
While it may sound like avoiding the solution, on the Coding Horror Blog (whom happens to be the guys who made this site) they preach that you shouldn't spend time tweaking performance if your hardware is limited. 虽然这可能听起来像是避免了解决方案,但在编码恐怖博客(恰好是制作这个网站的人)上,他们宣传如果您的硬件有限,就不应该花时间调整性能。
If you're doing this on a single core CPU (ex: Pentium 4), you are wasting your time worrying about what library to use or what code to change. 如果你是在单核CPU(例如Pentium 4)上进行此操作,那么你就会浪费时间来担心要使用的库或要更改的代码。 Even the slowest Core 2 Duos and newer AMDs start at 2x faster than the best Pentium 4. 即便是最慢的Core 2 Duos和更新的AMD也比最好的Pentium 4快2倍。
PS: I wasn't able to find the article on their site to link for you. PS:我无法在他们的网站上找到为您链接的文章。
PPS: Most Pentium 4 motherboards support the 65nm Core 2 Duos. PPS:大多数Pentium 4主板支持65nm Core 2 Duos。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.