JuliaPy / JuliaPy/PythonCall.jl

how to optimize reading long tuples from julia to python

未關閉
#575 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Julia
星號
1.1k
分支
86
平均合併
1 天 22 小時
30 天內合併 PR
3

描述

**Is your feature request related to a problem? Please describe.**
This code takes around 7s on a modern i9 the first time that it's executed. It's immediate the next times it's executed. It's also immediate to execute `(zeros(20_000)...,)` in julia.
I have python 3.12 and julia 1.10.5
```python
import juliacall
v=juliacall.Main.seval("(zeros(20_000)...,)");
```

**Describe the solution you'd like**
Is there any way to speed up the initial compilation?

**Describe alternatives you've considered**
I tried to use this code to to speed up reading data from julia to python by going through a tuple. Looping a long julia vector from python is much slower than looping a tuple ( around 4 times slower to read a 100_000 floats vector vs reading a tuple)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。