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

Testcase attached.

Environment

Lucee 5.2.1+9 via commandBox Windows 10

Assignee

Michael Offner

Reporter

r

Priority

Critical

Labels

Fix versions

Sprint

None

Affects versions

Configure