High execution time for nested functions

Description

Lucee time: 2221
ACF10 time: 42

On some data I receive, Request timeout.

Environment

None

Activity

Show:
Guardian
September 8, 2020, 11:38 AM

Even this simple execution is much slower 10 ms (ACF) VS 1700 ms (Lucee):

When I set localMode to modern execution time is equal 10 ms (ACF) VS 10 ms (Lucee).
But, I think this can cause some errors in existing code.

Michael Offner
September 11, 2020, 12:36 PM

as asked, do you have implicit variable access enabled?

we are working to make it (“implicit variable access“) faster, but best disable it, when you don’t need it.

Michael Offner
September 11, 2020, 12:37 PM

i keep the ticket open for the moment

Guardian
September 11, 2020, 1:38 PM
Edited

sorry, with debugging enabled or disabled is the same execution time: ~1781 ms
Same on ACF, with debug enable or disabled, same execution time: ~20 ms.

For the last script that I sent:

Guardian
October 12, 2020, 7:07 AM

Just to summarize:
This code:

On Lucee executes in 1700 ms
On ACF 10 executes in 100 ms

If for variable “a“ you set “LOCAL“ scope OR if you execute function code outside a function.
Execution time become same for Lucee and ACF ~ 20-100 ms

All tested in CommandBox.

Assignee

Unassigned

Reporter

Guardian

Priority

Major

Labels

Fix versions

None

Affects versions

Configure