0

我今天尝试使用 scipy.weave.inline 并且效果很好。第一次运行程序后,它知道 C 代码之前已经编译过,之后运行得更快。我想知道它是如何知道的以及编译后的代码在哪里?

4

1 回答 1

1

weave has various caching strategies, as can be seen from the source: a local cache that's just a dictionary keyed by the source code, and then falling back to a function catalog that has its own cache or saves things on disk.

于 2013-02-27T06:42:03.763 回答