What I mean is whether writing something code in a file and then writing a require to it somewhere else is slower than writing the code in the file itself? (What about a require to a file that only has a require?)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s slower, but not by any magnitude of which you should care unless you encounter problems. This is called premature optimization. It’s bad. Instead, spend your time making a great app and use all the tools at your disposition. If one day it runs a bit slow, you can start looking for the bottleneck and speed it up, but until then, don’t worry about it.