Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 732c8e4

Browse files
committed
Use rewind() instead of seek(0, …). #performance
1 parent b4ead38 commit 732c8e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Stringbuffer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ public function initializeWith ( $string ) {
262262

263263
ftruncate($this->getStream(), 0);
264264
fwrite($this->getStream(), $string, strlen($string));
265-
266-
$this->seek(0, \Hoa\Stream\IStream\Pointable::SEEK_SET);
265+
$this->rewind();
267266

268267
return $this;
269268
}

0 commit comments

Comments
 (0)