Mickael said:
>
> I have an app that seem to run very slow at time, I am looking for
> ways that I may not be using CF efficiently.
>
> The app is in french and english, and is able user is able to switch
> back and forth from french to english. I use a session variable for
> this.
> <table border="1" cellspacing="0" cellpadding="1"
> bordercolor="000066" align="center">
> <tr>
> <td><cfif session.language eq 1>Issue #<cfelse>Demande
> #</cfif></td>
Ewwww
Switch to using ResourceBundles while you still can:
http://www.macromedia.com/devnet/mx/coldfusion/articles/globalize.html
(I am working on a GNU gettext implementation so you can use human
readable text in your application and use the GNU toolset for working
with portable objects, but it won't be finished before new year and
unfortunately CFML doesn't allow the clean syntax PHP and C allow.)
Even if it doesn't help with performance it will save you enough time
in the long run to just buy a faster server.
Jochem
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Re: Re[2]: Best Practices Calvin Ward
- Re: Re[2]: Best Practices Mickael
- Re: Best Practices Ubqtous
- Re: Re[2]: Best Practices Calvin Ward
- RE: Re[2]: Best Practices Tangorre, Michael
- RE: Re[2]: Best Practices Tangorre, Michael
- RE: Re[2]: Best Practices d.a.collie
- RE: Best Practices d.a.collie
- Best Practices Mickael
- Re: Best Practices cf
- Re: Best Practices Jochem van Dieten
- Re: Best Practices Nick de Voil
- Re: Best Practices Paul Hastings
- Re: Best Practices Jochem van Dieten
- Re: Best Practices Paul Hastings
- Re: Best Practices Jochem van Dieten
- Re: Best Practices Paul Hastings
- Re: Best Practices Paul Hastings
- RE: Best Practices Jim Davis
- RE: Best Practices Tangorre, Michael
- Re: Best Practices Mickael