Suzhou-Tongyuan / jnumpy

Writing Python C extensions in Julia within 5 minutes.
MIT License
234 stars 8 forks source link

Reduce the latency of casting Array to numpy's ndarray #63

Closed songjhaha closed 2 years ago

songjhaha commented 2 years ago
julia> x = rand(2,2);

julia> @time py_cast(Py, x)
  2.101083 seconds (3.01 M allocations: 153.858 MiB, 1.81% gc time, 94.77% compilation time)
...