in reply to Mail::MboxParser pegs the CPU
Well, you can't parse 50MB in a second... You should create index for you mailbox, and load it instead of parsing mailbox for every request. I would use a database for this purpose. But if you want to use the file, take a look onto make_index method in Mail::MboxParser. It would require some additional work, as you probably want to index more information than just message number, but it's a something you can start with.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mail::MboxParser pegs the CPU
by oko1 (Deacon) on Jan 15, 2010 at 19:25 UTC | |
by zwon (Abbot) on Jan 15, 2010 at 20:09 UTC | |
by oko1 (Deacon) on Jan 15, 2010 at 20:33 UTC | |
by zwon (Abbot) on Jan 15, 2010 at 20:39 UTC | |
by oko1 (Deacon) on Jan 15, 2010 at 22:03 UTC | |
|