Monday, 12 August 2013

BigInteger in jar very slow when called from Coldfusion

BigInteger in jar very slow when called from Coldfusion

I have a class that creates a random string based on BigInteger. All works
fine and efficient when run standalone.
private SecureRandom random = new SecureRandom();
public String testMe() {
return new BigInteger(130, random).toString(30)
}
When this code is put into a library (jar) and called from Coldfusion
(9.0.2), this code hangs for 1 to 1.5 minutes (on my server). This code is
called from a cfc:
<cfset myTest = CreateObject("java", "com.acme.MyTest")>
<cffunction name="runTest" access="public">
<cfset var value = myTest.testMe()/>
</cffunction>
What am I missing?

No comments:

Post a Comment