View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
341 | PHPOF2 | Default | public | 23 Mar 2010 14:29 | 22 Jun 2010 22:25 |
Reporter | mrosenquist | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 0.11.2 | ||||
Target Version | 0.12.0 | Fixed in Version | 0.12.0 | ||
Summary | 341: Function storeLobData uses a lot of memory due to using call_user_func | ||||
Description | Using 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 Information | Additionally: 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 | ||||
Tags | No tags attached. | ||||
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 |