_EnumLimit loads one object on each call that can be avoided

subj, changes inlined

Best regards, Ruslan.

3.4-enum_limit_load_only_unless_number.patch (1.56 KB)

subj, changes inlined


Best regards, Ruslan.

changes:

  • in _EnumLimit load referenced object only if value
    is defined and is not number, this could safe several
    fetches from caches or in worst case from DB
  • use this advantage in Quicksearch element,
    change in load time should be noticable on the systems
    with many queues

Thanks! Please apply to 3.4, Ruslan.

Jesse