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.
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.wasm file under this directory. After another successful compilation overwrite the file. When user disconnects delete the file.
compilations/
directory. After a succesfull compilation store move the