I been testing is_mobile():
if (Agent::is_mobile())
{
$content = View::factory( mobileviewname );
}
else
{
$content = View::factory( standardviewname );
}
PHP profiler reports it taking up 2.25MB (after subtracting not using is_mobile() function in app) to return a true or false.
my browscap.cache file size is 433KB , is there plans to make this function take up less memory to do its checks? right now, I had to remove this function as it was just adding too much memory to my app.