3 ms·
Why can't it cleanup right after the work?
by firethief 6y ago
Why can't it cleanup right after the work?
- pmontra 6y agoOr no cleanup at all. A CLI command that runs for a very short time can allocate memory to perform its job, print the result and exit. Then the OS releases all the memory of the process. No idea if Rust can work like this.
- estebank 6y agostd::mem::forget, which doesn't run destructors: https://doc.rust-lang.org/std/mem/fn.forget.html https://doc.rust-lang.org/std/mem/fn.forget.html
- ReactiveJelly 6y ago"Watch mode" for static site gens would mean you leave the process running and let it rebuild the site whenever a file changes, probably 10s to 100s of times in a typical run