Make sure only things that need to be boxed are boxed
Opened this issue · 0 comments
dansteren commented
Right now we box everything. Rather than just bulk boxing everyting (whether it needs it or not) we should only box things that will cause recursive problems (and actually need to be boxed). So it involves evaluating each box and removing the ones that aren't necessary.
Currently the boxing only happens inside of tuples, records, and variants. Here's where you'd want to look for this code:
- cdk_framework/src/act/node/candid/record/member.rs:17
- cdk_framework/src/act/node/candid/tuple/elem.rs:26
- cdk_framework/src/act/node/candid/variant/member:33