Depends on the project. 35-40k lines isn't really that big in the grand scheme of things. For very large apps, though, compiled languages (C, C++) would probably have noticeable advantages in performance though. I don't know how the JVM actually handles programs when it's executing (e.g. keep all of it in memory at once vs. dynamic loading), so I can't say for sure though...