Skip to content

Is there any production cache for mapper configs / attribute autoconfiguration? #25

@anasmorahhib

Description

@anasmorahhib

Hi 👋

Thanks for the great library — I’m using SymfonyCasts/micro-mapper in a Symfony 7.3 project and it’s working really well.

I had a performance-related question regarding production use:

When using micro-mapper in prod environment, does the system cache any of the internal mapper configs or attribute parsing results? Specifically:

  • On each request, is registerAttributeForAutoconfiguration() called and re-parsed?
  • Or is there any internal caching mechanism for compiled mapper closures or metadata?
  • If not, do you plan to support some kind of warmable cache layer in the future?

I’m wondering if the attribute scanning and mapper metadata generation has any performance impact on high-traffic APIs — or if it’s handled efficiently already (e.g. via Symfony’s container, or internal static cache).

Thanks in advance! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions