We're updating the issue view to help you get more done. 

isInstanceOf Performance Degradation

Description

When calling the function isInstanceOf() and returns false, under Lucee 5.2.1.9 it is taking 50-90ms to complete vs 0-1ms on Lucee 4.5.5+006 and older. This has major impact on the performance of an application doing any kind of reflection with this function. The earliest version of Lucee in which this problem appears, that I have tested, is 5.0.0.252

1 2 3 4 5 6 7 8 9 10 11 <cfscript> //Takes ~0ms to complete timer type="outline" label="correct" { isInstanceOf(now(),"lucee.runtime.type.dt.DateTimeImpl"); } //Takes 50ms+ to complete on Lucee 5 timer type="outline" label="incorrect" { isInstanceOf(now(),"foo"); } </cfscript>

Testcase attached.

Environment

Lucee 5.2.1+9 via commandBox Windows 10

Status

Assignee

Michael Offner

Reporter

r

Labels

Sprint

None

Fix versions

Affects versions

5.2.1.9
5.0.0.254

Priority

Critical