This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

LLVM JIT compiler as a function decorator

Project Description

fastpy

Python made fast. Decorate your functions with @fast, we will infered the types you used, compile to machine code, and execute.

Biased test showing how fast fastpy is:

Initial code:

def long_loop(a):
  for i in range(100000):
    for j in range(10000):
      a += 1
return a
print long_loop(0)
$ time python loop.py
1000000000
python test.py  39.24s user 0.01s system 99% cpu 39.420 total
$ time pypy loop.py
1000000000
pypy test.py  0.92s user 0.01s system 99% cpu 0.937 total

Now we modify the code to use fastpy

from fastpy import fast

@fast
def long_loop(a):
  for i in range(100000):
    for j in range(10000):
      a += 1
  return a
print long_loop(0)
$  time python loop.py
1000000000
python test.py  0.11s user 0.00s system 99% cpu 0.117 total

Credits

Based on this tutorial http://dev.stephendiehl.com/numpile/

History

0.1.0 (2016-07-09)

  • First release on PyPI.
Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fastpy-0.1.1-py2.7.egg (36.8 kB) Copy SHA256 Checksum SHA256 2.7 Egg Jul 11, 2016
fastpy-0.1.1-py2.py3-none-any.whl (17.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jul 11, 2016
fastpy-0.1.1.tar.gz (23.0 kB) Copy SHA256 Checksum SHA256 Source Jul 11, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting