阅读背景:

NodeJs设计模式 - 要在全局配置或内部API路由中声明的大变量

来源:互联网 

Working on a nodeJs Application.I have an API Route which has high hitting rate. And in the controller function for the API I have to use a relatively Big Array. I wasn't sure if i should declare this in config.js Which i am supposing only loaded once in the memory or shall i declare it in the function itself where it'll be loaded in memory for every new incoming request. I am not sure which method is memory efficient. Working on a nodeJs Application.I have an API R




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: