开发者

Project is growing ang growing, Xcode slowing down

My projects is growing. It includes about 16 thousands .m4a (sound) files, because it's the App helping to learn languages with examples, but only few classes and files containing code.

Since I 've added those 16000 files working on this project is PITA. Renaming any file takes time, compiling, building, launching the app 开发者_如何学编程takes so much time. Of course I know that about 200MB has to be transfered, but the problem is the compouter is responding badly at that time.

Fortnately I have a SSD drive and 8GB RAM, I don't want to even think, how long would it take on HDD.

Is there any way to improve the perfomance?

I'll be also responsible for creating more than a ten similar apps for other pair of languages, and I would like to have all of them in one project and only play with targets. So if I don't do anything with performance now, there is high probability than one day I'll throw away this computer through the window of my house on the 2nd floor...


You can try downloading each m4a from the web once you need it. means - the app will be thin when a user download it, but once a sound file have to be played - it'll be downloaded from the web and saved on the SD. next time you have to play this file - play it from the SD.

And yeah, XCode have many problems - this is one of them..


I have solved the problem, by creating an additional Core Data sqlite file, that contains all of the resources, so the entity looks like:

name (nsstring) - name of file data (nsdata) - binary of file

works like a charm. Quick builds, quick debugs, just like before.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜