Skip to content

Reduce json serialisation in GLB writer#87

Merged
Ylannl merged 4 commits into
developfrom
simplify-glb-and-parser
Apr 28, 2026
Merged

Reduce json serialisation in GLB writer#87
Ylannl merged 4 commits into
developfrom
simplify-glb-and-parser

Conversation

@Ylannl

@Ylannl Ylannl commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

In cityjson-convert/src/gltf_writer.rs, the GLB writer was reworked to reduce JSON serialization churn. Instead of serializing the glTF root to serde_json::Value, mutating it for extensions, and serializing again, extensions are attached directly to typed gltf::json structures and the root is serialized once. The export path also now consumes more of its intermediate scene state instead of cloning it unnecessarily.

@Ylannl
Ylannl merged commit 4d5b4d1 into develop Apr 28, 2026
1 check passed
@Ylannl
Ylannl deleted the simplify-glb-and-parser branch April 28, 2026 09:27
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.

1 participant