speed of alloc/init for NSNumber
speed of alloc/init for NSNumber
- Subject: speed of alloc/init for NSNumber
- From: Chuck Soper <email@hidden>
- Date: Sun, 18 Jan 2004 12:54:31 -0800
Hello,
I have an NSTableView with about 400 rows and four columns. I manage
the content with an array of dictionaries. Some key values I display
in each of the columns. One of the dictionary keys contains a single
floating point number that has to be updated frequently. Since only
objects can be added to a dictionary, I put the float in an NSNumber
instance.
Since NSNumber doesn't have an mutable version, I have to release and
alloc/init it every time I update the number. Should I use
NSMutableData to avoid all the alloc/init messages to NSNumber to
speed up my code?
Chuck
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.