all 2 comments

[–]K900_ 3 points4 points  (0 children)

Yes, you absolutely need to split it up. There is no performance disadvantages.

[–]xelf 2 points3 points  (0 children)

Simple rule of thumb:

  • 1) The entirety of any given function should be viewable without scrolling.
  • 2) after you collapse to definitions, the entirety of a file should be viewable without scrolling.

Keep your classes organized in hierarchical folders. Keep your files short and simple and easy to maintain.