View Issue Details

IDProjectCategoryView StatusLast Update
341PHPOF2Defaultpublic22 Jun 2010 22:25
Reportermrosenquist Assigned To 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.11.2 
Target Version0.12.0Fixed in Version0.12.0 
Summary341: Function storeLobData uses a lot of memory due to using call_user_func
DescriptionUsing call_user_func_array will save doubling the file in memory

Example
on line 401 replace:
call_user_func(array($this->driver, 'storeLOBDataFromBuffer'), $this, $data_column, $data);
with:
call_user_func_array(array($this->driver, 'storeLOBDataFromBuffer'), array($this, $data_column, &$data));

will avoid duplicating the memory
Additional InformationAdditionally:
 
PHPOF2_Driver_DBRow_mysqli::storeLOBDataFromBuffer

uses $row->db->escape($data);
which douplicate the binary in memory, however I do not know away to avoid this
TagsNo tags attached.

Activities

timj

5 Apr 2010 22:08

manager   ~346

Thanks, good catch.
Fixed in SVN r2109

Issue History

Date Modified Username Field Change
23 Mar 2010 14:29 mrosenquist New Issue
5 Apr 2010 22:08 timj Note Added: 346
5 Apr 2010 22:08 timj Status new => resolved
5 Apr 2010 22:08 timj Resolution open => fixed
5 Apr 2010 22:08 timj Fixed in Version => 0.12.0
5 Apr 2010 22:08 timj Target Version => 0.12.0
22 Jun 2010 18:30 timj Summary Function storeLobData is use alot of memory due to using call_user_func => Function storeLobData uses a lot of memory due to using call_user_func
22 Jun 2010 22:25 timj Status resolved => closed