Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

james (1129)

james
  (email not shown publicly)
http://whoot.org/

...

Journal of james (1129)

Thursday February 06, 2003
05:00 AM

Objective-C Nasties

[ #10430 ]

I'm really getting sick of Mail.app in OS X - its far too slow, and it doesn't fit in with the unix toolchain very well. To remedy my situation I sat down to write an mbox parser. The general algorithm I built first in Perl, to test its validity, and ran against several different mbox files I have, just to make sure it worked and was fast enough.

I then translated the algorithm into MailReader.m. It works fine for small mailfiles (I mean really small, like 4 messages). When I ran it on a small-medium sized mbox file (1280 messages) it blew up. Completely. The process grew to 1.8gigs before I gave up and pressed stop in the build-run cycle.

No wonder Mail.app doesn't use mbox, its impossible to parse using Cocoa without grinding the system to an absolute halt.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Objectionable C

    Seriously, is it really obj C or is it just the poor libraries in Cocoa? You wouldn't want to write off perl because of some shoddy module you installed from CPAN...

    -Dom