What approach is better to use preformance wise require or a direct access for API modules in SFCC?

For instance, what will be better: to write dw.io.File every time I need the File or require("dw/io/File") at first then use the result of the require?

Here is the only thing I was able to find. Does anyone else know something else on the topic?

Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.