Skip to content

Performance issue with localizable controls and forms #2427

Description

@OliaG
  • .NET Core Version: .NT Core 3.0 GA
  • Have you experienced this same bug with .NET Framework?: No

Problem description:
Right now switching the Localizable property on control causes a large amount of properties moved to a .resx file. At runtime this is loaded with heavy use of reflection and deserialization which shows up in our performance profiles as the biggest reason for slow startup time. In our scenario all the controls and forms are designed using flexible layout containers that are automatically sized to fit the text. The all-or-nothing approach to localization, however, causes the control locations and sizes to be moved to .resx file as well. This results in unnecessarily high number of resources that we never localize and that also cause unnecessary re-layouts at startup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-Serialization-Resxtenet-localizationSuggested translations of resources; notification requiring translations; internationalizationtenet-performanceImprove performance, flag performance regressions across core releases

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions