Questions tagged [parakeet]

Parakeet is a runtime compiler for scientific computing in Python which uses type inference, data parallel array operators, and a lot of black magic to make your code run faster.

The performance boost is achieved by wrapping the desired function using parakeet.jit (usually via decorator).

While Numba encourages one to write the code using as many loops as possible, Parakeet encourages using NumPy style, which makes the code more compact. Reference: this presentation.

Parakeet website: http://www.parakeetpython.com/

The supported NumPy functions (in the latest Parakeet version) can be found here in the function_mappings dictionary.

4 questions
5
votes
1 answer

How does parakeet differ from Numba? Because I didn't see any improvements on some NumPy expressions

I am wondering if anyone knows some of the key differences between the parakeet and the Numba jit? I am curious, because I was comparing Numexpr to Numba and parakeet, and for this particular expression (which I expected to perform very very well on…
user2489252
3
votes
1 answer

Optimizing Python function with Parakeet

I need this function to be optimized as I am trying to make my OpenGL simulation run faster. I want to use Parakeet, but I can't quite understand in what way I would need to modify the code below in order to do so. Can you see what I should do? def…
bogdan
  • 667
  • 1
  • 8
  • 17
2
votes
3 answers

Simplify statement '.'.join( string.split('.')[0:3] )

I am used to code in C/C++ and when I see the following array operation, I feel some CPU wasting: version = '1.2.3.4.5-RC4' # the end can vary a lot api = '.'.join( version.split('.')[0:3] ) # extract '1.2.3' Therefore I…
oHo
  • 51,447
  • 27
  • 165
  • 200
1
vote
2 answers

Converting function to NumbaPro CUDA

I am comparing several Python modules/extensions or methods for achieving the following: import numpy as np def fdtd(input_grid, steps): grid = input_grid.copy() old_grid = np.zeros_like(input_grid) previous_grid =…
FRidh
  • 182
  • 7