Hi Guys,
Nog really a bug, but more a kind of a question..
I'm not a C# programmer just a simple PHP developer.. so i don't fully understand the syntax and the working of the CVS sources.. but i noticed something..
Almost every file does the following to read some settings:
using(MediaPortal.Profile.Xml xmlreader=new MediaPortal.Profile.Xml("MediaPortal.xml"))
xmlreader.GetValueAsString(key,"something","something");
Everytime its calling up a new xmlreader class which read mediaportal.xml
Now i know that reading a XML file and searching for a string isn't the fastest thing around in Windows.. but i see almost every file doing this..
Does mediaportal cache this file and store all settings? or is it really loading and reading this file everytime a module try's to retreive a setting?
Sounds like a bit of an overhead
but please correct me if i'm wrong, i've been unable to dive into C#, but going to as soon as RL allows me
Nog really a bug, but more a kind of a question..
I'm not a C# programmer just a simple PHP developer.. so i don't fully understand the syntax and the working of the CVS sources.. but i noticed something..
Almost every file does the following to read some settings:
using(MediaPortal.Profile.Xml xmlreader=new MediaPortal.Profile.Xml("MediaPortal.xml"))
xmlreader.GetValueAsString(key,"something","something");
Everytime its calling up a new xmlreader class which read mediaportal.xml
Now i know that reading a XML file and searching for a string isn't the fastest thing around in Windows.. but i see almost every file doing this..
Does mediaportal cache this file and store all settings? or is it really loading and reading this file everytime a module try's to retreive a setting?
Sounds like a bit of an overhead
but please correct me if i'm wrong, i've been unable to dive into C#, but going to as soon as RL allows me