perf: general performance improvements (#500)

* perf: general performance improvements

* remove unsafe usages, further improve perf

* perf: add table indexing
This commit is contained in:
stefan-gorules
2026-08-04 11:12:37 +02:00
committed by GitHub
parent 32a8f12547
commit fe43b4c1d7
75 changed files with 2391 additions and 686 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ pub fn variable_to_object<'py>(py: Python<'py>, val: &Variable) -> PyResult<Boun
let dict = PyDict::new(py);
let b = m.borrow();
for (key, value) in b.iter() {
dict.set_item(String::from(key.as_ref()), variable_to_object(py, value)?)?;
dict.set_item(key.as_str().to_owned(), variable_to_object(py, value)?)?;
}
dict.into_bound_py_any(py)