Archives

Articles tagged ‘swapfile’

Solving iPhone speed issues with dynamic paging

NOTE: This article does not teaches how to Jailbreak your iPhone nor how to install Cydia an its apps. There are plenty of info on that out there. Please do not insist.

NOTE: As pointed by Robert, the amount of I/O generated by the swapfile may greatly decrease the iPhone’s SSD lifetime since is designed to be more at rest.

After buying an iPhone 2G from a friend I just couldn’t resists and started hacking all that I could. Put on the latest firmware by the time (3.1.3) and Jailbroke it, put on Saurik‘s Cycorder via Cydia (aptw repository) (also from Saurik) in order to gain movie recording ability but didn’t went any further than that.

Then, as I don’t have a 3G/EDGE plan on my carrier, I decided only to access internet over WiFI but even scrambling APN credentials my little buddy kept connecting to my carrier EDGE network (and thus spending my money on high taxes).

After reading a while I discovered that SBSSettings would give me the option to control EDGE status (enabled/disabled) instead of just jamming credentials (that were being ignored by the carrier anyway). Installed and it just worked like a charm…. BUT… I’ve noticed that my Spingboard page transitions became a little hangy and apps opening and closing started to take much longer than it usual. From SBSSettings pane, I constantly see my memory running out due to iPhone’s lack of memory and lots of apps in background struggling for resources.

iPhone speed issues cartoon

Read the full article

Quick Tip: The haunted “b0VIM” menace

This is silly though. I was starting to lose my head and shout at the code when I as running Doctrine’s YAML parser to generate my base models. I was getting a strange parse error that said something like “Unable to parse line 0 (b0VIM…” and so discovered that it was my VIM swapfiles first-liners!

The parser scanned my YAML directory and parsed all .yml files, including the VIM swaps.

So if you get this funny string don’t go crazy. Trash the swap!