"DFS" <nospam@dfs_.com> wrote in message
news:BD**************@bignews1.bellsouth.net...
I don't mean lines of code in a given Sub or Function, but the overall size
of code modules.
I wouldn't expect it to matter much if at all, but I recently moved a good
bit of code out of one large module (80 subs or functions) and put it into
one of 5 new modules, and now my system seems significantly more
responsive.
Or is it just wishful thinking?
Theoretically splitting code up into smaller sections should put less of a
strain on the system. If you have 80 subs and functions in one module, then
if you call one, the whole lot gets loaded, whereas perhaps you only needed
a few.
Having said that, I have never really noticed a difference and my modules
are built up by logically organizing my code into blocks. In other words,
readability and logic is my priority. However, you are now in a position to
do some empirical tests. Take 2 versions of the database and make some
measurements - then *you* can let *us* know, what practical difference you
measured.