PHPOffice/PHPExcel — pull request #84 by amironov (2012-11-20 11:43:14+00:00)
Title: Search style by identity in PHPExcel_Worksheet::duplicateStyle()

Increases duplicateStyle performance.

Run Examples/40duplicateStyle.php.

# before
[Examples]$ php 40duplicateStyle.php
08:35:05 Create new PHPExcel object
08:35:05 Create styles array
08:35:05 Add data (begin)
08:35:18 **Add data (end), time: 12.96 s**
08:35:18 Write to Excel2007 format
08:35:20 File written to 40duplicateStyle.xlsx
08:35:20 Peak memory usage: 12 MB
08:35:20 Done writing file
File has been created in /builddir/PHPExcel/Examples

# after
[Examples]$ php 40duplicateStyle.php
08:36:19 Create new PHPExcel object
08:36:19 Create styles array
08:36:19 Add data (begin)
08:36:23 **Add data (end), time: 3.27 s**
08:36:23 Write to Excel2007 format
08:36:25 File written to 40duplicateStyle.xlsx
08:36:25 Peak memory usage: 12 MB
08:36:25 Done writing file
File has been created in /builddir/PHPExcel/Examples