Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2005

Tip: Looking for answers? Try searching our database.

Storing Graphic Resources

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Elmhorst - 10 Jan 2005 13:55 GMT
I'm building a Winforms library in which we would like to ship over 600
icons. Most of the icons are in PNG or GIF format, as they work best in an
ImageList. I've been thinking of storing the graphics as embedded resources
and making methods available for getting them out by name.

Are there performance implications with doing this? The assembly gets a lot
bigger when they are embedded, obviously. What type of a performance impact
does this have at runtime? If there are performance implications, does
anyone have an alternative way to do this?

Regards

Andrew Elmhorst
Andrew Elmhorst - 16 Jan 2005 03:13 GMT
It doesn't seem anyone had an answer for this. Does anyone have an idea of
where I can look for more information on this? I haven't really seen this
discussed anywhere.

Thanks

Andrew Elmhorst

> I'm building a Winforms library in which we would like to ship over 600
> icons. Most of the icons are in PNG or GIF format, as they work best in an
[quoted text clipped - 9 lines]
>
> Andrew Elmhorst
Ed Kaim - 16 Jan 2005 07:05 GMT
What were the performance results when you tried this as embedded versus
content files on disk?

> It doesn't seem anyone had an answer for this. Does anyone have an idea of
> where I can look for more information on this? I haven't really seen this
[quoted text clipped - 17 lines]
>>
>> Andrew Elmhorst
Andrew Elmhorst - 16 Jan 2005 21:33 GMT
I have not tried it any other way. What I'm looking for is some advice. How
does the .Net runtime load assemblies? Does it put everything into memory?
If so, I would expect that it does matter how much stuff you embed into an
assembly and we would not want to do so.

If it does not and it's smarter about just pulling out what it needs, but
keeping the entire assembly out of memory, then it would certainly be easier
to maintain by keeping the data in there.

I can certainly run some performance and profiling tests, but I'm just
shocked that no one seems to know anything about best practices in this area
( or this is just being ignored because no one really has an opinion ) and
I'm not finding anything anywhere. In general, I like to back up my own
testing with a general consensus and best practice that is out there. I'm
just not finding it for this topic. I changed the subject on this post, so
maybe that will help

Regards,

Andrew Elmhorst

> What were the performance results when you tried this as embedded versus
> content files on disk?
[quoted text clipped - 20 lines]
>>>
>>> Andrew Elmhorst

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.