Skip to content

Commit

Permalink
Pyo3 20 (#5)
Browse files Browse the repository at this point in the history
* richcmp slow again

* updated to pyo320

* sql where predicates
  • Loading branch information
jessekrubin authored Oct 27, 2023
1 parent ea53cb0 commit 1b59258
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 86 deletions.
148 changes: 72 additions & 76 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ crate-type = ["cdylib"]
[dependencies]
fast_hilbert = "2.0.0"
geo-types = "0.7.9"
pyo3 = "0.18.3"
pyo3 = "0.20.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.96"
utiles = { path = "crates/utiles" }
Expand All @@ -28,7 +28,7 @@ opt-level = 3
strip = true

[dev-dependencies]
pyo3 = { version = "0.18.3", features = ["auto-initialize"] }
pyo3 = { version = "0.20.0", features = ["auto-initialize"] }

[build-dependencies]
pyo3-build-config = "0.18.3"
pyo3-build-config = "0.20.0"
5 changes: 5 additions & 0 deletions bench/test_eq.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ def test_tile_equality_tuple2tuple(benchmark: BenchmarkFixture) -> None:
benchmark(_equal, t, t2)


def test_tile_equality_tuple2tile(benchmark: BenchmarkFixture) -> None:
t = (1, 2, 3)
tile_obj = utiles.from_tuple(t)
benchmark(_equal, t, tile_obj)

def test_tile_equality_tile2tuple(benchmark: BenchmarkFixture) -> None:
t = (1, 2, 3)
tile_obj = utiles.from_tuple(t)
Expand Down
Loading

0 comments on commit 1b59258

Please sign in to comment.