Kayes
Kayes

Reputation: 1086

Performance issue when web.config is really huge

Does it have any major effect on performance/ memory if my web.config is really huge (say, 1000+ entries in <appSettings>)? Is it a good idea to maintain a different custom xml config file for all business specific settings for my app? Thanks.

Upvotes: 3

Views: 1065

Answers (3)

A G
A G

Reputation: 22587

The web.config file is usually just read once and the info cached so I dont think it will have any performance issue.

ASP.NET: Where/how is web.config cached?

Upvotes: 1

wonde
wonde

Reputation: 684

Yes it does.Web app config file works when your page load at the first time.So when ever your application is loads the Web app is read and loaded in the memory.So this will create performance issue on your application and better to put non application level settings on xml file.

Upvotes: 0

Bermo
Bermo

Reputation: 4931

This could potentially delay application startup slightly, but since all settings will be read from memory after that, it shouldn't have any performance impact.

Upvotes: 2

Related Questions