[Tickets #10949] RFC822 parsing library very inefficient

bugs at horde.org bugs at horde.org
Tue Jan 31 18:35:46 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10949
------------------------------------------------------------------------------
  Ticket             | 10949
  Created By         | Michael Slusarz <slusarz at horde.org>
  Summary            | RFC822 parsing library very inefficient
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Enhancement
  State              | Assigned
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2012-01-31 11:35) wrote:

According to xdebug: viewing a mail message with approximately 50  
recipient e-mail addresses, Horde_Mail_Rfc822->parseAddressList is  
taking 94.91% of cumulative run time.  More spcifically, the  
_hasUnclosedQuotes() component is being called 9,185 times and taking  
91.88% of run time.

Fix: use a tokenizer/linear parsing approach.  Probably will port  
Timo's parsing approach from dovecot (no PHP solution currently  
available is appropriate).

Bumping priority since this library is used on almost every page in  
IMP - performance advantages here will be seen throughout IMP.





More information about the bugs mailing list