cad-editor/src/io
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 8946fadcb2 perf(xref): parse referenced files in parallel
`resolve_xrefs` parsed each xref DWG/DXF one after another, so opening a
drawing that references several large discipline files paid the sum of
their parse times. Split into two phases: parse every file in parallel
(each `load_file` is independent and never touches the host document),
then merge the parsed results serially in the original block order (merge
mutates the host doc, so it stays sequential and deterministic).

Resolving Clinic.dwg's 5 discipline xrefs drops from ~4s to ~2.1s with an
identical result (5 loaded, 0 dropped, same entity count). The speedup is
sub-linear because parsing is memory-bound (each file decompresses ~95 MB
of SAB geometry), not because of the serial merge.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 01:09:44 +03:00
..
file_association.rs fix(web): restore wasm build broken by SECTION + file association 2026-06-29 17:13:17 +03:00
linetypes.rs refactor: move resource/IO root modules under io/ 2026-06-26 23:06:40 +03:00
mod.rs fix(plugin): auto-register unknown layers so added entities survive DWG save (#252) 2026-07-02 20:36:16 +03:00
obj.rs feat(render): double-single vertices for the mesh pipeline 2026-06-23 18:28:52 +03:00
patterns.rs refactor: move resource/IO root modules under io/ 2026-06-26 23:06:40 +03:00
pdf_export.rs fix(pdf): export linetypes and true lineweights (#155) 2026-06-25 19:13:19 +03:00
plot_style.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
print_to_printer.rs build(web): restore the wasm build — gate native-only deps off wasm 2026-06-25 14:11:18 +03:00
step.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
stl.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
update_check.rs refactor: move resource/IO root modules under io/ 2026-06-26 23:06:40 +03:00
xref.rs perf(xref): parse referenced files in parallel 2026-07-05 01:09:44 +03:00