Skip to content

Commit

Permalink
reducing memory usage
Browse files Browse the repository at this point in the history
Reducing memory usage by unsetting $tmp_user_agents
  • Loading branch information
vtek21 committed Mar 25, 2014
1 parent ed66171 commit 0c5b34a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/phpbrowscap/Browscap.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0c5b34a

Please sign in to comment.