• 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: Memory leak. DUH!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak. DUH!


  • Subject: Re: Memory leak. DUH!
  • From: Coleman Nitroy <email@hidden>
  • Date: Sat, 12 Feb 2005 12:48:49 -0500


On Feb 12, 2005, at 12:37 PM, Coleman Nitroy wrote:

properties usually has no more then 6 objects so [properties count] = 6,
So if I change:


for ( i = 0; i < [properties count] - 3; i++ )

To:

for ( i = 0; i < 2000; i ++ )

The second runs light times faster still.

I am nominated to possibly win the award for the biggest idiot. properties kept having objects added to it in the function that was calling this. Hence the exponential slowdowns and memory usage.


There goes a whole 4 hours!

DUh! Thanks anyway though.

::embarrassed::

---
Coleman Nitroy
email@hidden
nitroy.com/cole

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


References: 
 >Re: Memory leak. (From: Coleman Nitroy <email@hidden>)

  • Prev by Date: Re: Memory leak.
  • Next by Date: Re: Memory leak.
  • Previous by thread: Re: Memory leak.
  • Next by thread: check status of secure webpage?
  • Index(es):
    • Date
    • Thread