Saturday, 2 May 2020

Does splitting js files into modules slow performance?

Quite new to nodejs. Does the process the using module.export = (x) to require js files slow performance vs having all js tasks in one file?Some backend tasks are quite complex so it would be desirable to split into separate js files, but if this affects the execution speed of those modules, I think it'd be best to avoid it.From what I understand, the module.export + require method is different from importing js files? Some experienced advise here would be appreciated, thank you.

Submitted May 02, 2020 at 12:58PM by jacobluc457

No comments:

Post a Comment