Two comments. Context switches are of course much cheaper then loading a JVM. No argument there. The point is that the JVM is loaded once for each connection (when the connection makes the first call to a java function). Millions of calls may follow that reuses the same JVM. Each of those calls will suffer from context switches if the JVM is remote. A 1 to a million (or more) ratio is in fact very likey when function calls are used in predicates and/or projections of selects on larger tables.
Regarding C++, as I said, no big deal. I'll change it for the reasons mentioned before I release my first cut. Thanks, - thomas ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org