Skip to content

Commit 9494e34

Browse files
committed
improve consume speed
1 parent a48091c commit 9494e34

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/HTML5/Parser/Scanner.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ public function current()
126126
*/
127127
public function consume($count = 1)
128128
{
129-
for ($i = 0; $i < $count; ++ $i) {
130-
$this->next();
131-
}
129+
$this->char += $count;
132130
}
133131

134132
/**

0 commit comments

Comments
 (0)