#1442: Listeners decrease performance by ~33%
--------------------------------------+-------------------------------------
 Reporter:  nodkz                     |       Owner:  romanb
     Type:  defect                    |      Status:  new   
 Priority:  major                     |   Milestone:        
Component:  Listeners                 |     Version:  1.0   
 Keywords:  execution time, listener  |    Has_test:  0     
 Mystatus:  Pending Core Response     |   Has_patch:  0     
--------------------------------------+-------------------------------------
 If we set up following listener, it decrease performance by ~33%

 {{{
 $conn = Doctrine_Manager::getInstance()->getCurrentConnection();
 $profiler = new Doctrine_Connection_Profiler();
 $conn->setListener($profiler);
 Zend_Registry::set('sql-profiler',$profiler);
 unset($profiler);
 }}}

 On such simple code under Versionable object Customer.

 {{{
 for($i=0;$i<500;$i++) {
     $c=new Customer();

     $c->name="Pavel";
     $c->save();
     $c->name="Ivan";
     $c->save();

     $c->free(true);
     unset($c);
 }
 }}}

 Execution time:
   ~21 sec (Without listener)
   ~32 sec (With listener)

 Checked on Doctrine 1.0.0 and on version 1.0.1

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1442>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to