Permalink
Browse files

reducing memory usage

Reducing memory usage by unsetting $tmp_user_agents
  • Loading branch information...
vtek21 committed Mar 25, 2014
1 parent ed66171 commit 0c5b34aa34326368b5509563a6a399e81acbd3b5
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/phpbrowscap/Browscap.php
@@ -573,6 +573,9 @@ public function updateCache()
$this->_browsers[] = $browser;
}
// reducing memory usage by unsetting $tmp_user_agents
unset($tmp_user_agents);
foreach ($tmp_patterns as $pattern => $pattern_data) {
if (is_int($pattern_data)) {

0 comments on commit 0c5b34a

Please sign in to comment.