[Numpy-discussion] ANN: NumExpr 2.6.8 (original) (raw)
Robert McLeod robbmcleod at gmail.com
Sun Aug 19 14:58:12 EDT 2018
- Previous message (by thread): [Numpy-discussion] The http://planet.scipy.org/ site is down.
- Next message (by thread): [Numpy-discussion] NumPy 1.15.1 release
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
========================== Announcing Numexpr 2.6.8
Hi everyone,
Our attempt to fix the memory leak in 2.6.7 had an unforseen consequence
that
the f_locals
from the top-most frame is actually f_globals
, and
clearing it
to fix the extra reference count deletes all global variables. Needless to
say
this is undesired behavior. A check has been added to prevent clearing the
globals dict, tested against both python
and ipython
. As such, we
recommend
skipping 2.6.7 and upgrading straight to 2.6.8 from 2.6.6.
Project documentation is available at:
http://numexpr.readthedocs.io/
Changes from 2.6.7 to 2.6.8
- Add check to make sure that
f_locals
is not actuallyf_globals
when we do thef_locals
clear to avoid the #310 memory leak issue. - Compare NumPy versions using
distutils.version.LooseVersion
to avoid issue #312 when working with NumPy development versions. - As part of
multibuild
, wheels for Python 3.7 for Linux and MacOSX are now available on PyPI.
What's Numexpr?
Numexpr is a fast numerical expression evaluator for NumPy. With it, expressions that operate on arrays (like "3a+4b") are accelerated and use less memory than doing the same calculation in Python.
It has multi-threaded capabilities, as well as support for Intel's MKL (Math Kernel Library), which allows an extremely fast evaluation of transcendental functions (sin, cos, tan, exp, log...) while squeezing the last drop of performance out of your multi-core processors. Look here for a some benchmarks of numexpr using MKL:
https://github.com/pydata/numexpr/wiki/NumexprMKL
Its only dependency is NumPy (MKL is optional), so it works well as an easy-to-deploy, easy-to-use, computational engine for projects that don't want to adopt other solutions requiring more heavy dependencies.
Where I can find Numexpr?
The project is hosted at GitHub in:
https://github.com/pydata/numexpr
You can get the packages from PyPI as well (but not for RC releases):
http://pypi.python.org/pypi/numexpr
Documentation is hosted at:
http://numexpr.readthedocs.io/en/latest/
Share your experience
Let us know of any bugs, suggestions, gripes, kudos, etc. you may have.
Enjoy data!
-- Robert McLeod, Ph.D. robbmcleod at gmail.com robbmcleod at protonmail.com robert.mcleod at hitachi-hhtc.ca www.entropyreduction.al -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180819/8510e7f2/attachment.html>
- Previous message (by thread): [Numpy-discussion] The http://planet.scipy.org/ site is down.
- Next message (by thread): [Numpy-discussion] NumPy 1.15.1 release
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]