Micro optimization in hot-spot - setValueIfTableHasField - use fields.containsKey, rather than getField, which throws, and is expensive when so frequent

This commit is contained in:
2023-09-29 17:08:24 -05:00
parent d4df533f5d
commit 6c2c9b83ed

View File

@ -193,8 +193,7 @@ public abstract class AbstractRDBMSAction implements QActionInterface
{
try
{
QFieldMetaData field = table.getField(fieldName);
if(field != null)
if(table.getFields().containsKey(fieldName))
{
record.setValue(fieldName, value);
}