Fwd: Itunes structure
Fwd: Itunes structure
- Subject: Fwd: Itunes structure
- From: Jeremyah Payne <email@hidden>
- Date: Mon, 5 Apr 2004 16:26:02 -0500
Begin forwarded message:
>
From: Jeremyah Payne <email@hidden>
>
Date: April 5, 2004 4:11:29 PM CDT
>
To: Allan Odgaard <email@hidden>
>
Subject: Re: Itunes structure
>
>
Well I guess thats what I was wondering, Say I have some 6-7000 items
>
like a nice sized itunes database. Probably about 7.5 MB. IS a file
>
that is written out to XML like the itunes database dump fast enough
>
using the built in parser to a dictionary? Fast enough meaning if i
>
Launch a separate thread at launch and initialize the res of the ap on
>
the main thread.
>
>
The other reason I want to know how itunes makes its database is I am
>
creating a design editor for my game that will be able to edit any
>
type of object in the game. I want it to have a library like itunes
>
as well as "play lists". But instead of listing songs, they would
>
list say ships, and weapons, and other "items" that i have in the
>
game. I like the itunes structure of looking at the things, so the
>
gui would be similar but not quite the same, more like matrix +
>
itunes.
>
>
I was hoping to use this same file in relation to the game as well so
>
it could look up the attributes from the library. So i could have a
>
weapon class, and then upon init it looks up they key it is passed and
>
can grab the necessary attributes for it.
>
>
> Fast? I guess that depends on your machine and the size of the
>
> database. Here it takes 5 seconds to load the xml version of my
>
> iTunes library into an NSDictionary. That is less than 1.8 MB/s --
>
> for comparison, gzip is able to compress the entire xml file in less
>
> than 2 seconds.
>
>
>
>
>
>
>
>
>
>
>
> ** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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.