You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to reduce memory consumption with Fresh 2.0? Currently deployed on fly.io on a 1024MB machine, while a similar application on Node.js consumes around 190-220MB of RAM. Maybe we can create a single executable and get rid of typescript transpilation at runtime? Very thanks.
FROM denoland/deno:debian
WORKDIR /app
COPY . .
RUN deno task build
EXPOSE 80
CMD ["run", "-A", "main.ts"]
The text was updated successfully, but these errors were encountered:
To include files or directories in the executable, specify them via the --include <path> flag.
deno compile --include names.csv --include data main.ts
Then read the file relative to the directory path of the current module via import.meta.dirname:
// main.tsconstnames=Deno.readTextFileSync(import.meta.dirname+"/names.csv");constdataFiles=Deno.readDirSync(import.meta.dirname+"/data");// use names and dataFiles here
Note this currently only works for files on the file system and not remote
files.
Is it possible to reduce memory consumption with Fresh 2.0? Currently deployed on fly.io on a 1024MB machine, while a similar application on Node.js consumes around 190-220MB of RAM. Maybe we can create a single executable and get rid of typescript transpilation at runtime? Very thanks.
The text was updated successfully, but these errors were encountered: