Skip to content

Commit 33e82c7

Browse files
author
ace411
committed
feat: change DEFAULT_VECTOR_COUNT
1 parent 50e21fa commit 33e82c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Funnels file descriptor in readable stream into event loop and thence executes a
156156
- **nbytes** (int|null) - The number of bytes to read.
157157
> Specifying `null` will condition the use of a 1KB buffer.
158158
- **vcount** (int|null) - The number of read vectors to use.
159-
> Specifying `null` will condition the use of 2 vectors.
159+
> Specifying `null` will condition the use of `1` vector.
160160
> Any value north of `8` will likely result in an inefficient read.
161161
- **offset** (int|null) - The point at which to start the read operation.
162162
> Specifying `null` will condition the use of an offset of `0`.
@@ -214,7 +214,7 @@ Funnels file descriptor in writable stream into event loop and thence executes a
214214
> The file descriptor in the stream is internally given a non-blocking disposition.
215215
- **contents** (string) - The contents to write to the file descriptor.
216216
- **vcount** (int|null) - The number of write vectors to use.
217-
> Specifying `null` will condition the use of 2 vectors.
217+
> Specifying `null` will condition the use of `1` vector.
218218
> Any value north of `8` will likely result in an inefficient write.
219219
- **callback** (callable) - The unary function through which the number of written bytes is propagated.
220220

src/loop.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define DEFAULT_STREAM_BUFF_LEN 1024
2727
#define DEFAULT_CONN_BUFF_LEN 8132
2828
#define DEFAULT_HTTP_HEADER_LIMIT 100
29-
#define DEFAULT_VECTOR_COUNT 2
29+
#define DEFAULT_VECTOR_COUNT 1
3030
#define DEFAULT_READV_OFFSET 0
3131
#define PHP_MRLOOP_TIMER 1
3232
#define PHP_MRLOOP_PERIODIC_TIMER 2

0 commit comments

Comments
 (0)