Speed up formatter class access from "kDBItem"

Components

Labels

Description

  1. introduce protected "kDBBase::getFormatter" method that would:

    1. cache previously retrieved formatter class into private static "$_formattersCache" property

    2. if formatter isn't found in above-defined cache, then get it from the factory and store it in the cache

    3. otherwise, return formatter from the case

  2. instead of doing "recallObject" to get formatter in the "kDBBase" and "kDBItem" classes use "kDBBase::getFormatter" method 

Context Information

None

Additional information (do not use)

None

Activity

[API] Administrator July 8, 2022 at 2:29 PM

User committed a fix to 5.2.x. Commit Message:

Fixes - Speed up formatter class access from "kDBItem"

Differential Revision: http://qa.in-portal.org/D396

Erik S. March 3, 2021 at 10:48 AM

erik accepted D396: - Speed up formatter class access from "kDBItem".
D396: - Speed up formatter class access from "kDBItem" is now accepted and ready to land.

Alex February 26, 2021 at 3:05 PM

alex added a project to D396: - Speed up formatter class access from "kDBItem": Intechnic: RPI.

Alex February 26, 2021 at 3:04 PM

alex requested review of D396: - Speed up formatter class access from "kDBItem".

Fixed

Details

Priority

Assignee

Reporter

Developer

Reviewer

Change Log Group

Changed

Change Log Message

Patch Instructions

Patches must be submitted through Phabricator.

Time tracking

4h logged

Story Points

Fix versions

Created February 26, 2021 at 2:55 PM
Updated December 29, 2024 at 8:48 PM
Resolved July 8, 2022 at 2:29 PM