eXist-db/exist — pull request #273 by wolfgangmm (2014-07-16 17:31:13+00:00)
Title: [performance] Skip unnecessary type checks

Arguments to optimised functions should not be wrapped into useless, additional type checks, which cause a massive performance loss. All functions overwriting Function.setArguments handle type checks themselves.

In the concrete example which led to this change, calling ngram:contains took several seconds, which came down to a few milliseconds after the fix.