Re: Reading in dictionary from txt file: options for speed
Re: Reading in dictionary from txt file: options for speed
- Subject: Re: Reading in dictionary from txt file: options for speed
- From: WT <email@hidden>
- Date: Wed, 15 Apr 2009 03:15:04 +0200
On Apr 15, 2009, at 2:48 AM, Miles wrote:
Sorry, Wagner, I'm a little spaced -- I didn't realize your test
included
getting the contents into an array! This is great.
No harm, no foul. :)
Here are some VERY interesting results. The simulator seems to be
faster
with bin and text, while the device is quite a bit slower with text,
and
about even with bin and xml.
That the device is quite a bit slower than the simulator, in every
case, is not a surprise, of course. I also think it shouldn't be a
surprise that the device is quite a bit slower with text than plist
(either bin or xml), since I suppose the device is optimized for
plist. I am a bit surprised, though, that bin is slower than xml in
the device. I was expecting the other way around.
Your times on the simulator are better than mine, so your machine must
be faster than mine. I have a Core 2 2.0 GHz Macbook. I am assuming
that you got these numbers using the app that I wrote, with no
modifications. Or did you replace the dictionary I used with yours?
*From simulator:*
bin 0.206031, 0.231285
xml 0.479002, 0.433691
txt 0.296232, 0.213713
*From device:*
bin 5.760234, 5.628642, 6.457935, 5.068025
xml 5.651398, 5.428460, 5.525060, 5.096705
txt 8.951027, 8.817826, 8.784503, 8.539374
Thanks again, Wagner! I guess I'll see how it goes with plist.
You're welcome. Best of luck.
Wagner
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden