← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 ammar2, cstratak, hroncok, methane, pablogsal, serhiy.storchaka, vstinner
日期 2019-12-19.15:15:21
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1576768521.61.0.0858417845046.issue38980@roundup.psfhosted.org>
In-reply-to
内容
Pablo:
> I have seen people using LD_PRELOAD (...) to interpose faster versions of some functions or to collect metrics (although there are better ways).

IMHO if someone has to go so far into "hacking" Python, they should recompile Python with specific options. I'm not sure that using LD_PRELOAD to get "faster versions of some functions" is the best approach in term of performance, but I expect it to be convenient :-)


Charalampos:
> I think it will add to the complexity of the --with-optimizations flag which already implies PGO and LTO.

It doesn't enable LTO, only PGO :-) We had to disable LTO because of multiple compiler bugs last years.


Serhiy:
> I am sure some C API functions are purposed to be overridden.

Is it a theorical use case, or are you aware of such use case being currently used in the wild?


Ammar Askar:
> Just for a quick datapoint: llvm/clang do this by default and you need an explicit `-fsemantic-interposition` to disable it http://lists.llvm.org/pipermail/llvm-dev/2016-November/107625.html

Oh, that's really interesting, thanks!
历史
日期 用户 动作 参数
2019-12-19 15:15:21vstinner修改recipients: + vstinner, methane, serhiy.storchaka, cstratak, ammar2, hroncok, pablogsal
2019-12-19 15:15:21vstinner修改messageid: <1576768521.61.0.0858417845046.issue38980@roundup.psfhosted.org>
2019-12-19 15:15:21vstinner链接issue38980 messages
2019-12-19 15:15:21vstinner创建