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!)
Some simple coding techniques to push C# as fast as possible
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="Anonymous" data-source="post: 6935"><p>I wasn't suggesting optimizing the entire code based on my suggestions. C# is fast enough, the GC is fast enough, for 90+% of normal coding operations. But there may be something critical which needs optimizing. I'm a huge fan of writing the most readable code possible, it's the only way in the long haul to support a stable code base.</p><p></p><p>Regarding the dispose pattern, I didn't make this up, you can find that on numerious MSDN sites with regard to writing high performance C# code. And for good reason. If you're doing something which is pushing the CPU hard and your thread gets bumped out for the GC, that may be a situation which isn't acceptable from a performance standpoint. Maybe it causes a hiccup when recording video, who knows. Those bugs are hard to find and diagnose for sure.</p></blockquote><p></p>
[QUOTE="Anonymous, post: 6935"] I wasn't suggesting optimizing the entire code based on my suggestions. C# is fast enough, the GC is fast enough, for 90+% of normal coding operations. But there may be something critical which needs optimizing. I'm a huge fan of writing the most readable code possible, it's the only way in the long haul to support a stable code base. Regarding the dispose pattern, I didn't make this up, you can find that on numerious MSDN sites with regard to writing high performance C# code. And for good reason. If you're doing something which is pushing the CPU hard and your thread gets bumped out for the GC, that may be a situation which isn't acceptable from a performance standpoint. Maybe it causes a hiccup when recording video, who knows. Those bugs are hard to find and diagnose for sure. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Some simple coding techniques to push C# as fast as possible
Contact us
RSS
Top
Bottom