onuruci / stylus-playground

An Online Playground for Arbitrum Stylus. ETH Istanbul Arbitrum Stylus 1st Place
https://stylus-playground.vercel.app
3 stars 0 forks source link

Store compilations before deployment #6

Open onuruci opened 9 months ago

onuruci commented 9 months ago

What

Currently server generates user specific projects and deletes it when user leaves. This has great performance drawbacks. With using precompiles we will be removing user specific projects and user's code will only be used to be compiled once in the project. After a successful compilation it will extract a deployable .wasm file. Since the same project will be used for compiling other users's projects too, we need to extract the wasm file and save it later to be deployed.

How

Generate a compilations/ directory. After a succesfull compilation store move the .wasm file under this directory. After another successful compilation overwrite the file. When user disconnects delete the file.