forked from 1b-agent/opencadstudio-upstream
A drawing with 650k entities and 21k objects stalled for 7 minutes the first time a layout viewport was drawn (#1746): building that viewport's block cache asked for each entity's layer viewport overrides, and the codec found each layer's extension dictionary by scanning every object whenever the layer had none. Codec 2646725 reads the registered link. The XCLIP check made the same scan for every nested INSERT without an extension dictionary; it now reads the INSERT's own link, which the readers and ensure_extension_dictionary always set. Cargo: codec 2646725, kernel 4e6334a, graph 2fd1d42. Co-Authored-By: Claude Opus 5.5 <[email protected]>
20 lines
726 B
TOML
20 lines
726 B
TOML
[package]
|
|
name = "plugin-template-v2"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Example OpenCAD Studio plugin demonstrating the shared-memory DocumentReader API."
|
|
license = "GPL-3.0-only"
|
|
|
|
[workspace]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
ocs_plugin_api = { path = "../../crates/ocs_plugin_api", features = ["host"] }
|
|
# Must match the host's opencadcodec pin exactly (its Cargo.toml's `codec`
|
|
# entry): the plugin's entities and the host's re-exports are the same types
|
|
# only when both resolve the same revision. The registration `rustc` /
|
|
# `acadrust_source` gates enforce this at load time too.
|
|
acadrust = { package = "acadrust", git = "https://github.com/HakanSeven12/opencadcodec.git", rev = "2646725" }
|