With most Xpages applications I observe that, in designer, ssjs libraries are getting slower and slower to open as the grow. One example is library that currently has 1200+ lines of code (including comments) and consists of 40+ functions. Every time I access the library in designer (e.g. by switching from a different tab to the one hosting the library code) there's a lot of flickering, rebuilding and re-reading going on which can take up to several seconds.
It's not that I couldn't wait for that but it makes me kind of uneasy, and I wonder if there is some kind of limitation (regarding lines of code, or number of functions, or both) that I should be observing. Would I be better off splitting my code into various libraries?
And, yes: I am considering rebuilding at least some of the functions as javaBeans, but the base question remains.
And finally, no, I don't observe any degradation in performance at runtime. This is a design-time issue only.