Skip to content

Conversation

@krVatsal
Copy link
Contributor

@krVatsal krVatsal commented Feb 10, 2026

Fixes #3742
This PR replaces the custom, over-engineered 1D bit-packed encoding for the layer structure with a standard hierarchical tree structure.

Previously, the layer hierarchy was encoded into a u64 buffer where the Most Significant Bit (MSB) indicated indentation changes and the values represented layer counts or IDs. This was decoded manually in the frontend using DataView and pointer arithmetic.

Now, the structure is defined as a simple recursive LayerStructure struct in Rust and class in TypeScript, which is automatically serialized and deserialized via serde and class-transformer.

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.

Simplify layer structure hierarchy plumbing

1 participant