technosophos/querypath — Issue #70: QueryPath::is() performance
Author: TomorrowToday
Created: 2012-02-11 05:49:24+00:00
State: open

QueryPath::is()
0.002677 seconds

Compared to $qp->branch()->find($selector)->count()>1
0.000632 seconds

Using this Array:
```
$data = array();
for ($i=25; $i>0; $i--) {
$c = 'bottle'.$i;
$tpl .= '

';
$data['#'.$c][] = $i.' bottles of beer.' ;
}
```

The performance hit is pretty large when iterating.