ASP.NET Web.config AppSettings Performance

后端 未结 1 447
[愿得一人]
[愿得一人] 2020-12-17 20:32

I have a number of appSettings in web.config that are used frequently (i.e. on each post back). Does the ConfigurationManager hold these values in process or are there any

相关标签:
1条回答
  • 2020-12-17 21:07

    AFAIK the configuration is read and parsed at startup and the data is held in memory thereafter. I don't believe any performance gains from caching the state in application variables will be significant - though you may get improved readability as you don't litter the code with ConfigurationManager.AppSettings[...].

    0 讨论(0)
提交回复
热议问题