Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.75k stars 1.57k forks source link

JS backend deep clone optimisation. #14718

Closed samwho closed 1 month ago

samwho commented 1 month ago

Description

On the backend, the implementation of string-templates' getContextValue is used by the return value of it gets copied when it crosses the isolated-vm memory boundary. This makes the deepClone in processJS redundant, so I'm removing it.

I did notice that the frontend works slightly differently to the backend and left a comment about it on the code.