Skip to content

Refactor & Docs: Workspace Architecture, Performance Optimizations & Test Cleanup#57

Merged
Wgoeh merged 6 commits into
AllDotPy:masterfrom
Einswilli:new_design
May 10, 2026
Merged

Refactor & Docs: Workspace Architecture, Performance Optimizations & Test Cleanup#57
Wgoeh merged 6 commits into
AllDotPy:masterfrom
Einswilli:new_design

Conversation

@Einswilli
Copy link
Copy Markdown
Contributor

Overview

This PR brings significant improvements to the Ryx codebase, focusing on documentation alignment, performance optimizations, and codebase cleanup.

Changes Details

1. Documentation Update (Major)

  • Workspace Architecture: Updated README.md and CONTRIBUTING.md to reflect the new Rust workspace structure (ryx-core, ryx-backend, ryx-query, ryx-python).
  • Performance Deep Dive: Created docs/doc/internals/performance.mdx detailing our extreme performance innovations:
    • Enum Dispatch: Eliminating vtable lookups for backend calls.
    • Zero-Allocation Rows: Using RowView to minimize heap allocations.
    • GIL Minimization: Optimizing the Python/Rust boundary.
  • Updated existing docs (architecture.mdx, rust-core.mdx, project-structure.mdx).

2. Test Cleanup

  • Removed legacy test files from tests/ root directory (17 files deleted).
  • Tests have been properly relocated to the ryx-python/tests/ crate within the workspace.

3. Refactoring & Improvements

  • Compiler Refactoring: Renamed compiler.rs to compilr.rs (internal module refactor) and updated module declarations.
  • Benchmarks: Added new benchmarks in ryx-query/benches/query_bench.rs.
  • Backend Updates: Minor improvements in ryx-backend for MySQL and SQLite support.
  • Python Code: Refactored fields.py, models.py, queryset.py, and migration modules.

4. CI Updates

  • Updated .github/workflows/ci.yml for the new workspace structure.

Checklist

  • Tests pass
  • Documentation builds successfully (cd docs && npm run build)
  • cargo build passes for all workspace crates

Einswilli added 6 commits May 10, 2026 11:36
…ormance optimizations

- Reflect the new Rust workspace (ryx-core, ryx-backend, ryx-query, ryx-python)
- Add 'Performance Philosophy' section describing Enum Dispatch and Zero-Allocation Rows
- Update CONTRIBUTING.md with new build process and coding conventions
- Create docs/doc/internals/performance.mdx for deep dive on optimizations
The test files have been relocated to the new workspace structure within the ryx-python crate (ryx-python/tests/).
- Refactor fields, models, queryset and migrations
- Update backend Rust code (MySQL/SQLite)
- Add benchmark for query compiler
- Fix compiler module declaration (compiler.rs -> compilr.rs)
@Wgoeh Wgoeh merged commit 9bea612 into AllDotPy:master May 10, 2026
1 of 7 checks passed
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