• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOImage: Load Any image with certain prefix...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOImage: Load Any image with certain prefix...


  • Subject: Re: WOImage: Load Any image with certain prefix...
  • From: Wolfram Stebel <email@hidden>
  • Date: Thu, 30 Jun 2005 22:22:24 +0200

Am 30.06.2005 21:31 Uhr schrieb "Sacha Mallais" unter
<email@hidden>:

> On Jun 30, 2005, at 12:19 PM, Nathan Walker wrote:
>> Efficiency question:  If I call this 5-6 times throughout every
>> page in my application, would that create a performance hit having
>> to loop through the loop so many times and having to hit "listFiles
>> ()" each time.  Does that even matter ? or should be concerned with ?
>
> My usual optimization advice is: optimize the areas you _know_ are a
> problem.  Spending brain cycles on something that may or may not be a
> problem is a waste.  In general, unless it is being called thousands
> of times, you don't need to worry about it.
>
>
>> Would it be best to create a variable once in the Application class
>> for   File[] fileList = aDirectory.listFiles();  so that only needs
>> to be called once and reference that variable in the utility method ?
>>
> Might be a good idea.  Remember that this is a space-for-speed trade-
> off and that now you'll have to worry about data freshness.
>
>
> sacha
I would do it once for a component, thats a good deal, so if the number of
files increases (what normaly happens :-) ) you are on a safe side...

Wolfram


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: WOImage: Load Any image with certain prefix... (From: Sacha Mallais <email@hidden>)

  • Prev by Date: Re: changing application behaviour according to domain name
  • Next by Date: Re: Managing huge project
  • Previous by thread: Re: WOImage: Load Any image with certain prefix...
  • Next by thread: Managing huge project
  • Index(es):
    • Date
    • Thread