#661 - Optimise tempcode tree growth
| Identifier | #661 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Optimise tempcode tree growth |
| Status | Completed |
| Tags |
Type: Performance (custom) |
| Handling member | Chris Graham |
| Addon | core |
| Description | - Make code_to_prexecute an array, with codenames as keys, so we know quickly when we don't need to extend it on an attach (due to potentially having the code already) and also conserve memory (as PHP will share references). Actually why is it separate to seq_parts - check this out.
- We don't really need to give each seq_part and preprocessable_bit a copy of the parameters during a bind operation. Flag what bits require the parameters during compilation, then only pass them through if that flag has been set. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
2nd part not relevant - it is more expensive to chop up parameters, as currently it is a reference copy. We cannot store in the main Tempcode wrapper, as parameterisation needs to be passed through abstraction layers cleanly. What we have now is *very* efficient.