getrailo/railo — pull request #398 by clitnak (2014-04-17 17:43:16+00:00)
Title: StructKeyExists(xml.xmlAttributes) performance improvement

If you do a structKeyExists(xml.xmlAttributes,"mykey") the attributes 'struct' will check for key existance by throwning a page exception, catching it, ignoring it and returning false. If the key exists, it is fast, but if the key doesn't, it is slow.

Fix is to avoid throwing the exception. This has some duplicate code that should be cleaned up, but you get the idea.

Thanks!