{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"NumExpr evaluates numerical expressions on NumPy arrays with multi-threaded acceleration and reduced memory overhead, typically achieving 0.95x to 4x speedups over direct NumPy operations.","skillfed_tags":["performance-optimization","numerical-computing"],"use_cases":["Accelerate large-scale numerical computations in data analysis pipelines where memory bandwidth is a bottleneck.","Evaluate complex mathematical expressions on multi-gigabyte arrays without exhausting available RAM.","Speed up scientific simulations that repeatedly apply the same expression to different array chunks.","Parallelize array operations across CPU cores for workloads that would otherwise be single-threaded in NumPy.","Reduce memory footprint in memory-constrained environments by avoiding intermediate array allocation."],"what_it_does":"NumExpr is a numerical expression evaluator that accelerates array computations by parsing expressions into its own virtual machine bytecode and executing them in chunks that fit in CPU cache. Instead of creating intermediate arrays for each operation (as NumPy does), it processes small chunks of data across all available CPU cores, reducing memory pressure and improving cache locality. This approach typically yields speedups between 0.95x and 4x for common expressions, with larger gains possible for complex mathematical operations.\n\nThe package works by taking string expressions like `'a*b-4.1*a > 2.5*b'` and evaluating them on NumPy arrays without materializing temporary results. It supports arithmetic, comparison, and transcendental functions (sin, arcsinh, etc.), and can also operate on string arrays. Performance benefits are most pronounced on large arrays; small arrays may see minimal or no improvement. The package optionally integrates with Intel's MKL for further acceleration of transcendental functions on Intel architectures.","worth_installing":"Yes. NumExpr is actively maintained, has no known vulnerabilities, and offers genuine performance benefits for large-array numerical workloads. The MIT license imposes no restrictions. Install it if you regularly work with large NumPy arrays and need to squeeze performance from complex expressions; skip it for small arrays or simple operations where overhead outweighs gains."},"id":"numexpr","links":{"html":"https://skillfed.io/packages/numexpr","md":"https://skillfed.io/packages/numexpr.md","pypi":"https://pypi.org/project/numexpr/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-18","license_spdx":"MIT","license_treatment":"permissive","name":"numexpr","python_support":"supports_current","summary":"Fast numerical expression evaluator for NumPy"},"popularity":{"monthly_downloads":16838156,"position":1137,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.14.2"}
