Details
Assignee
UnassignedUnassignedReporter
Dominic WatsonDominic WatsonPriority
CriticalNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Details
Details
Assignee
Unassigned
UnassignedReporter
Dominic Watson
Dominic WatsonPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Created 25 June 2019 at 20:52
Updated 26 July 2024 at 11:52
I have been spending time optimizing the memory usage of our application and found that something like request.keyExists( someKey ) is not only slower than StructKeyExists( request, someKey ), but it also uses considerably more memory in my testing using FusionReactor.
Is there anything fundamental here that can't be changed/helped? I'm presuming this applies to other BIFs vs object methods also.
Worth noting, that if we do something regularCfmlStruct.keyExists( someKey ), the memory usage is much less than when performing it on a CFML scope, but still more than StructKeyExists().