Suzhou-Tongyuan / jnumpy

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

Improvement to reduce loading time of python project #65

Open songjhaha opened 2 years ago

songjhaha commented 2 years ago

Relate issue: #27

Need to reduce the latency of loading project.

In [1]: import jnumpy as np

In [2]: %time np.init_jl()
CPU times: user 884 ms, sys: 752 ms, total: 1.64 s
Wall time: 944 ms

In [3]: %time from basic import jl_square
CPU times: user 691 ms, sys: 11 ms, total: 702 ms
Wall time: 705 ms