This is a collection of of pyo3 errors I'd like to improve.
Trying to misuse Python::allow_threads.
Code:
use pyo3::prelude::*;
use pyo3::types::PyString;
fn parallel_print(py: Python<'_>) {
"""A quick benchmark comparing the performance of: | |
- msgspec: https://github.com/jcrist/msgspec | |
- pydantic V1: https://docs.pydantic.dev/1.10/ | |
- pydantic V2: https://docs.pydantic.dev/dev-v2/ | |
The benchmark is modified from the one in the msgspec repo here: | |
https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_validation.py | |
I make no claims that it's illustrative of all use cases. I wrote this up |
This is a collection of of pyo3 errors I'd like to improve.
Code:
use pyo3::prelude::*;
use pyo3::types::PyString;
fn parallel_print(py: Python<'_>) {
npm install -g jspm@beta
jspm init
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate