gpt4 book ai didi

performance - 为了提高性能,建议安装 Perl 的方法是什么?

转载 作者:行者123 更新时间:2023-12-04 03:01:14 26 4
gpt4 key购买 nike

我正在配置中寻找推荐选项,以在具有大量硬件资源的 Linux CentOS6.6 64 位服务器上安装 Perl 以获得最大性能。我正在使用 plenv。我正在使用的命令:

plenv install -j 8 -Dcc=gcc $perl_to_install

我应该添加哪些 -O 选项(以及其他选项)?

我应该使用线程 Perl 吗?

最佳答案

“Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.”

— Donald Knuth

您需要知道哪些选项与代码中的瓶颈相关

您应该编写代码,使其正常工作,然后使用Devel::NYTProf对其进行分析。只有这样你才能明智地提出如何最好地重新配置 perl 解释器本身的问题

关于performance - 为了提高性能,建议安装 Perl 的方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30370963/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com