Re: How to improve resource file performance?
From: Lloyd Dupont (ld_at_NewsAccount.galador.net)
Date: 06/28/04
- Next message: Lloyd Dupont: "Re: weird quit of PPC App ???"
- Previous message: Serg Kuryata [MS]: "Re: Explained: Toolbar buttons and WM 2003SE"
- In reply to: JustMe: "Re: How to improve resource file performance?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 29 Jun 2004 09:25:26 +1000
ms-help://MS.NETFrameworkSDKv1.1/cpguidenf/html/cpconcreatingusingresources.
htm
"JustMe" <temilson@sasktel.net> wrote in message
news:e3728397.0406281221.700052e1@posting.google.com...
> Hi Lloyd ...
>
> Thanks for your reply. How would one go about 'shipping the resources
> a plain file'?
>
> Also, does anyone know of any way to 'compile' special localized
> versions of an application? In other words, instead of using the
> resource files to determine local based on the devices settings,
> create special localized EXE files .. individual exe's for french,
> spanish, english, etc...? The ONLY advantage of doing this would be
> the performance gain from what I can see, but it might be worth it.
>
> In other words, if you had the following line of code:
>
> messagebox.show(resources.getstring("Hello"))
>
> Is there any way to actually 'compile' the app such that at runtime it
> does:
>
> messagebox.show("Hello") 'English
>
> or
>
> messagebox.show("Hola") 'Spanish
>
> Not doing the actual resource lookup at runtime would make performance
> as good as it was before trying to localize the app.
>
> Does this make sense?
>
> Thanks again,
> --Terry
>
>
>
> "Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:<##PEAuKXEHA.1128@TK2MSFTNGP10.phx.gbl>...
> > hoho...
> > it's why my application is so slow at startup!
> >
> > yep, I've noticed they followed the guid for bad design guidelines
regarding
> > resources.
> > typically each resource access throw an exception (which they catch)...
I
> > wonder if it's not better to ship the resource as plain file outside the
> > assembly .. that might be the reason of the problem.... unfortunately
the
> > designer don't let you do that with form's resources ...
> >
> > "JustMe" <temilson@sasktel.net> wrote in message
> > news:e3728397.0406271558.7d009a4f@posting.google.com...
> > > Hi ...
> > >
> > > I have localized my application using resource files. Now that I am
> > > using resources.getString() to obtain the localized versions of all
> > > strings in my application, I'm finding that my application takes
> > > almost twice as long to load some forms.
> > >
> > > I suppose this makes sense, but I wonder if there are any suggestions
> > > on how I can improve the speed?
> > >
> > > Any and all comments are greatly appreciated.
> > >
> > > --Terry
- Next message: Lloyd Dupont: "Re: weird quit of PPC App ???"
- Previous message: Serg Kuryata [MS]: "Re: Explained: Toolbar buttons and WM 2003SE"
- In reply to: JustMe: "Re: How to improve resource file performance?"
- Messages sorted by: [ date ] [ thread ]