Memory usage optimization: Data class PropertyData should not expose services

Fixed in

EPiServer.CMS.Core 11.1.0

Created

Oct 09, 2017

Updated

Oct 01, 2020

Area

CMS Core

State

Closed, Fixed


Description

PropertyData base class exposes services like LocalizationService and property SettingsID and SettingsContainer properties which are part of the property definition. Double storing these properties on PropertyData adds atleast 10% memory usage for the whole web site.

Breaking changes

  • SettingsID obsoleted, extension method GetSettingsID or service IPropertyDataSettingsHelper can be used instead
  • SettingsContainer obsoleted, extension method GetSettingsContainer or service IPropertyDataSettingsHelper can be used instead
  • TranslateDisplayName()/TranslateDescription() moved to extension method