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!)
Dear Mediaportal developpers.....
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="te3hpurp" data-source="post: 330752" data-attributes="member: 82806"><p>Hi</p><p></p><p>First of all, i think you are doing really great job, Bigh thanks for this product.<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p>Please take no offence, but once again i was going trough the source code of</p><p>TvEngine3 & Mediaportal itself, and i noticed that there was a huge amount og</p><p>"GC.Collect & GC.WaitforPendingFinalizers" lines in the code. My humble opinion is that it's not a good thing at all.</p><p></p><p>I've been sitting in same table with some some "MS Evangelist" to talk about this</p><p>same issue. I had those lines in my code guite often too, while i was creating a </p><p>"Language lab Media Assistant". Within few hours they made me belive that GC itself knows when to run, better than I do.</p><p>So many GC.Collect lines implicate usually Desing flaw, or a bug that is hiding behind these lines. For example</p><p>ReleaseComObject is missing/used in wrong place etc. So what i did was to remove them all, and started hunting bugs from my code. Actually there was less than i expected, but the impact was much smoothly running</p><p>software. Mysterious freezes were gone just by removing all GC:Collets. Speed increased guite a lot.</p><p></p><p>So i took a Mp & TvEngine code and removed them all by Find & Replace just to look the impact. I'm glad i did.</p><p>Now my Mp runs much better, smoother. One "maybe a bug" rised, but i haven't studiet it yet. So i've only tried Mp, not TvEngine yet. In TvEngine there was lot less of those lines. GC.:Collect uses lot of Cpu time, and if used wrongly it might even kill something it should not.</p><p></p><p>The only place i can think of where GC.Collect could be usefull might be a game with lot lot of data in memory, and you might want to run GC.Collect in the end of Game Levels, before loading new level.</p><p></p><p>But hey, <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> It's your product, You decide.</p><p></p><p></p><p>regs,</p><p>te3hpurp</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 330752, member: 82806"] Hi First of all, i think you are doing really great job, Bigh thanks for this product.:thx: Please take no offence, but once again i was going trough the source code of TvEngine3 & Mediaportal itself, and i noticed that there was a huge amount og "GC.Collect & GC.WaitforPendingFinalizers" lines in the code. My humble opinion is that it's not a good thing at all. I've been sitting in same table with some some "MS Evangelist" to talk about this same issue. I had those lines in my code guite often too, while i was creating a "Language lab Media Assistant". Within few hours they made me belive that GC itself knows when to run, better than I do. So many GC.Collect lines implicate usually Desing flaw, or a bug that is hiding behind these lines. For example ReleaseComObject is missing/used in wrong place etc. So what i did was to remove them all, and started hunting bugs from my code. Actually there was less than i expected, but the impact was much smoothly running software. Mysterious freezes were gone just by removing all GC:Collets. Speed increased guite a lot. So i took a Mp & TvEngine code and removed them all by Find & Replace just to look the impact. I'm glad i did. Now my Mp runs much better, smoother. One "maybe a bug" rised, but i haven't studiet it yet. So i've only tried Mp, not TvEngine yet. In TvEngine there was lot less of those lines. GC.:Collect uses lot of Cpu time, and if used wrongly it might even kill something it should not. The only place i can think of where GC.Collect could be usefull might be a game with lot lot of data in memory, and you might want to run GC.Collect in the end of Game Levels, before loading new level. But hey, :D It's your product, You decide. regs, te3hpurp [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Dear Mediaportal developpers.....
Contact us
RSS
Top
Bottom