home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Optimalisation of settings mediaportal?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Helza" data-source="post: 16699" data-attributes="member: 10294"><p>Hi Guys,</p><p></p><p>Nog really a bug, but more a kind of a question..</p><p>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..</p><p></p><p>Almost every file does the following to read some settings:</p><p>using(MediaPortal.Profile.Xml xmlreader=new MediaPortal.Profile.Xml("MediaPortal.xml"))</p><p>xmlreader.GetValueAsString(key,"something","something");</p><p></p><p>Everytime its calling up a new xmlreader class which read mediaportal.xml</p><p>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..</p><p></p><p>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?</p><p></p><p>Sounds like a bit of an overhead <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Helza, post: 16699, member: 10294"] 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 :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Optimalisation of settings mediaportal?
Contact us
RSS
Top
Bottom