Hi Dave,
after looking more deeper into the code, i see what you mean. The apm-loader is quite dumb and is based on the assumption that load more or less everything and filters later on. However, one can do better than what the above check does: instead of loading all files int the directory www/resources and filter these, one can already filter on the directory and avoid scanning all these files at all.
But there seems to be more useful, since several of the operations scan the files, and it is not useful to scan e.g. .zip files, or .java, etc. Furthermore, acs-lang was loaded twice.
Since the files are scanned several times during startup, it seems worth to speed it up (see my commits of today). On my test machine, some of the apm_load* operations are up to five times faster than before. The code is still straightforward. In case my filtering was too aggressive (e.g. on file extensions), it can be easily made more/less aggressive.
-gustaf neumann