optimize sequential writes to stream

This commit is contained in:
Robin Appelman 2017-08-16 17:56:24 +02:00
commit 85b101b701
2 changed files with 101 additions and 1 deletions

View file

@ -248,7 +248,7 @@ class NativeShare extends AbstractShare {
public function write($source) {
$url = $this->buildUrl($source);
$handle = $this->state->create($url);
return NativeStream::wrap($this->state, $handle, 'w', $url);
return NativeWriteStream::wrap($this->state, $handle, 'w', $url);
}
/**