[Numpy-discussion] numexpr question
Francesc Alted
francesc@continuum...
Thu Nov 8 09:17:23 CST 2012
On 11/8/12 1:37 PM, Neal Becker wrote:
> I'm interested in trying numexpr, but have a question (not sure where's the best
> forum to ask).
>
> The examples I see use
>
> ne.evaluate ("some string...")
>
> When used within a loop, I would expect the compilation from the string form to
> add significant overhead. I would have thought a pre-compiled form would be
> available, similar to a precompiled regexp. yes/no?
numexpr comes with an internal cache for recent expressions, so if
ne.evaluate() is in a loop, the compiled expression will be re-used
without problems. So you don't have to worry about caching it yourself.
The best forum for discussing numexpr is this:
https://groups.google.com/forum/?fromgroups#!forum/numexpr
--
Francesc Alted
More information about the NumPy-Discussion
mailing list