In a managed package, I have lwc with combobox whose options are fields from an object. It calls an apex method that returns the list of fields and then displays them.
I have noticed for specific customer org that the loading time for the combo-box taking way too long. The delay time happens in two events: 1.When loading the options in the combobox 2.When selecting a specific value
Naturally, the list of values depends on the number of fields in the object; however, in other orgs I used an object with 800 fields and didn't notice any issues. It also seems that the delay in event 2, indicates that the issue is not on the server.
I saw several posts on the performance issue for combobox, related to locker service, but still was not able to reproduce it in any other orgs.
Does anyone have experience with a similar issue and can suggest how to tackle it? Are there any org global settings that might affect this behaviour?
update I discovered that the following option affect the performance:
"Use Lightning Web Security for Lightning web components and Aura components"
When it is set to off the performance is poor. Is there any good way to solve it without switching the option to on?