与Ddebugging一起编译时,Perl较慢?

发布于 2025-02-11 11:14:41 字数 437 浏览 0 评论 0原文

根据

它读了,

避免版本的perl用线程或ddebugging

我知道大多数发行版都用线程编译PERL,但是我对Debian的perl(如perl -v _所观察到的,用-ddebugging = -g编译了这会减慢它的速度吗?

According to this slide from Supercharging Perl - Daina Pettit,

enter image description here

It reads,

Avoid versions of perl compiled with threading or DDEBUGGING unless you know you need them.

I know most distros compile Perl with threading, but my Perl on Debian (as observed with perl -V_ is compiled with -DDEBUGGING=-g does this slow it down?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扬花落满肩 2025-02-18 11:14:41

请注意,使用-ddebugging构建的PERL将大得多,并且运行速度将比标准Perl慢得多。

但是,-ddebugging = -g不启用调试:

为方便起见,可以使用配置开关(也有些令人困惑),可以共同启用或单独启用代码(-ddebugging)和调试符号(-G)(-G)命名-ddebugging。对于更引人注目的调用,-debugging被定义为-ddebugging的别名。对于这两个方面,还支持-U调用,以覆盖提示或策略。SH设置。

也记录了

配置-debugging = -g

添加-g以优化,但未设置-ddebugging(注意:您的系统实际上可能需要> CC -G2


。 /code>,如果看到以下内容,则没有-ddebugging

-ddebugging使用-d switch(您是指-d?)

Perl with debugging enabled is slower.,

Note that a perl built with -DDEBUGGING will be much bigger and will run much, much more slowly than a standard perl.

However, -DDEBUGGING=-g does not enable debugging:

As a convenience, debugging code (-DDEBUGGING) and debugging symbols (-g) can be enabled jointly or separately using a Configure switch, also (somewhat confusingly) named -DDEBUGGING. For a more eye appealing call, -DEBUGGING is defined to be an alias for -DDEBUGGING. For both, the -U calls are also supported, in order to be able to overrule the hints or Policy.sh settings.

and also documented:

Configure -DEBUGGING=-g

Adds -g to optimize, but does not set -DDEBUGGING. (Note: Your system may actually require something like cc -g2. Check your man pages for cc(1) and also any hint file for your system.)


You can test status with: perl -D, if you see the following you do not have -DDEBUGGING,

Recompile perl with -DDEBUGGING to use -D switch (did you mean -d ?)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文