title: Working with many Javascript functions
body: <p>I'm currently working with a personal library that's accumulated quite a number of "helper" functions, which are used throughout my architecture for various purposes. Back when there were only a few of them, I kept them in a single file and object so I could access them like so:</p>
  
  <pre><code>tools.parseSomething(obj);
  </code></pre>
  
  <p>This has been terribly handy, and keeps the code still somewhat organised and readable. The problem is that the file (and object) containing these methods is growing to an enormous size, and needs a cleanup. I was considering creating separate files for "categories" of functions and placing them in those, so they'd be accessed like:</p>
  
  <pre><code>tools.env.getEnvironmentInfo();
  </code></pre>
  
  <p>My concern with this approach is not the readability so much, but the performance of the look-up. From what I've read recently, object look-ups are no longer the <em>major</em> bottle-neck they used to be, but I still want my library to be as efficient as possible (readability second).</p>
  
  <p>I also considered having the separate files, but add all of the functions to the parent object so they're still accessible in the original way, but stored separately. The object containing the functions is "static" and exists as a single instance.</p>
  
  <p>My question is, with regards to what I've explained, what would be the most efficient method of storing and using a large amount of helper functions? By efficiency I mean performance, which is the sole area of concern for me at the moment.</p>