Skip to content

feat(pathfinder): add pathfinding utilities and SQLite integration#52

Merged
MartianGreed merged 7 commits intomainfrom
pathfinder/0
Apr 3, 2026
Merged

feat(pathfinder): add pathfinding utilities and SQLite integration#52
MartianGreed merged 7 commits intomainfrom
pathfinder/0

Conversation

@bengineer42
Copy link
Copy Markdown
Collaborator

  • Introduced a new crate pathfinder for pathfinding utilities in the Torii project.
  • Updated Cargo.toml to include the new pathfinder crate and its dependencies.
  • Implemented event decoding and compression in decoding.rs.
  • Added error handling with custom error types in error.rs.
  • Created an extractor for fetching events from the database in extractor.rs.
  • Developed a fetcher for retrieving emitted events and block contexts in fetcher.rs.
  • Defined SQLite data structures and extension methods for database interactions in sqlite.rs.
  • Added utility functions for database connection in utils.rs.
  • Implemented tests for emitted events retrieval in test.rs.
  • Included binary dictionaries for event compression in assets.

- Introduced a new crate `pathfinder` for pathfinding utilities in the Torii project.
- Updated `Cargo.toml` to include the new `pathfinder` crate and its dependencies.
- Implemented event decoding and compression in `decoding.rs`.
- Added error handling with custom error types in `error.rs`.
- Created an extractor for fetching events from the database in `extractor.rs`.
- Developed a fetcher for retrieving emitted events and block contexts in `fetcher.rs`.
- Defined SQLite data structures and extension methods for database interactions in `sqlite.rs`.
- Added utility functions for database connection in `utils.rs`.
- Implemented tests for emitted events retrieval in `test.rs`.
- Included binary dictionaries for event compression in `assets`.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

📊 Synthetic Benchmark Results

Comparing against baseline: 20260403T073044Z

Performance Summary

Token Type Duration (ms) Blocks Transactions Events Envelopes Blocks/sec Events/sec
erc20 2923 100 50000 50000 50000 34.20 17100.71
erc1155 10483 100 50000 50000 70000 9.54 4769.47
erc721 11463 100 50000 50000 50000 8.72 4361.66

Comparison with Baseline

Token Type Metric Baseline Current Change
erc20 Throughput (events/sec) 17100.71 17100.71 ➡️ 0.0%
erc20 Duration (ms) 2923 2923 ➡️ 0.0%
erc1155 Throughput (events/sec) 4769.47 4769.47 ➡️ 0.0%
erc1155 Duration (ms) 10483 10483 ➡️ 0.0%
erc721 Throughput (events/sec) 4361.66 4361.66 ➡️ 0.0%
erc721 Duration (ms) 11463 11463 ➡️ 0.0%

Legend:

  • ✅ Improvement (faster)
  • ⚠️ Regression (slower)
  • 📈 Throughput increase
  • 📉 Throughput decrease
  • ➡️ No significant change (<5%)

Stage Latency Breakdown

Token Type Extract (ms) Decode (ms) Sink (ms) Commit (ms)
erc20 12.359405999999998 57.71053100000002 2768.9548890000015 0.030432999999999988
erc1155 21.29169 84.324583 10299.299163 0.023468999999999993
erc721 12.249828000000004 52.15725799999999 11331.081074000002 0.032495

Generated by Synthetic Benchmark CI

bengineer42 and others added 6 commits April 2, 2026 14:56
- Introduced a new `Felt` type to represent StarkNet field elements.
- Implemented serialization and deserialization for `Felt` using Serde.
- Added conversion implementations between `Felt` and StarkNet's native types.
- Created `EmittedEvent` and `Event` structs for handling StarkNet events.
- Added tests for serialization and deserialization of `Felt` to ensure correctness.
- Updated the `test.rs` file to include tests for fetching emitted events with context.
@MartianGreed MartianGreed merged commit f7caa0e into main Apr 3, 2026
8 checks passed
@MartianGreed MartianGreed deleted the pathfinder/0 branch April 3, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants