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!)
Loading pictures in MP alot faster
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="ingig" data-source="post: 75417" data-attributes="member: 24608"><p>I've used this method for probably 2 years now on my webserver without any problems. When I implemented it, my cpu average when from 70% to about 20% (the server does a lot of thumbnail work)</p><p></p><p>The cause according to microsoft is </p><p>"This performance difference occurs because the System.Drawing.Image.FromStream method always calls an image validation routine on the loaded image."</p><p></p><p>So my guess is that the method throws an exception if the object isn't an image, but not on this "new" method. But I guess that when you try something image related with the object you'll get an exception if it's not an image. So I don't think the difference is much and well worth it.</p><p></p><p>I'm not much of an IRC man, but maybe I'll check it out.</p></blockquote><p></p>
[QUOTE="ingig, post: 75417, member: 24608"] I've used this method for probably 2 years now on my webserver without any problems. When I implemented it, my cpu average when from 70% to about 20% (the server does a lot of thumbnail work) The cause according to microsoft is "This performance difference occurs because the System.Drawing.Image.FromStream method always calls an image validation routine on the loaded image." So my guess is that the method throws an exception if the object isn't an image, but not on this "new" method. But I guess that when you try something image related with the object you'll get an exception if it's not an image. So I don't think the difference is much and well worth it. I'm not much of an IRC man, but maybe I'll check it out. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Loading pictures in MP alot faster
Contact us
RSS
Top
Bottom