Add serialization of built-up DSLs #109
Labels
C-chirp
relates to the cuicui_chirp file format crate specifically
C-dsl
relates to the cuicui_dsl crate specifically
T-enhancement
New feature or request
The idea is to keep and store constructed
DslBundle
for eachEntity
. To keep track of the hierarchy, we could use thechild_count
method, similarly to how the AST is handled, and how scenes are loaded in https://github.com/nicopap/bvyfst/tree/main/hollow_scene.Basically, it's just pre-processing the scene file and save it as an array of the relevant
DslBundle
.The primary use case would be obfuscation, but it has a legitimate perf concern:
ReflectSerialize
), nor run each method. TheDslBundle
is pre-build.Reflect
orSerialize
, the only thing that maters is theDslBundle
type.DslBundle
, it is pre-built. This means: no need for loading several files, executing templates etc. Although with chirp templates:for
statement #94, we would probably need to have a solution for dynamic queries.rkvy
orbincode
, it is likely the parsing overhead is lowerzip
compression pass is trivial and could potentially greatly reduce asset sizesThe text was updated successfully, but these errors were encountered: