Skip to content

$subdivision->getLocalName() is slow (~1s per call), impacts page rendering timeΒ #83

@Crovitche-1623

Description

@Crovitche-1623

Hi πŸ‘‹

First of all, thank you for this great project and all the work you've put into maintaining it β€” it's really appreciated!

I'm currently using:

"sokil/php-isocodes": "^4.2",
"sokil/php-isocodes-db-i18n": "^4.0"

I've encountered a performance issue with the getLocalName() method. Each call to getLocalName() takes around 1 second to execute. In my case, I need to display the local names of approximately 10 subdivision on a single page, which results in a 10-second delay just for this step.

I'm using the Symfony Translation driver

Question

Is there a recommended way to optimize the performance of getLocalName() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions