FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.88k stars 137 forks source link

[Performance] Process.env is slow #1266

Open lcnvdl opened 1 month ago

lcnvdl commented 1 month ago

The access to process.env is slow.

https://github.com/motdotla/dotenv/issues/562

In order to improve this, other frameworks have an enable cache option to the Env wrapper.

Something like:

Env.useCache = true;

As I've seen, FoalTS doesn't have this feature. Is there any possibility to add it?

Thanks in advance