MCPcopy Create free account
hub / github.com/Effect-TS/effect / parseEffectChunked

Function parseEffectChunked

packages/sql/pg/benchmark/PgCodec.ts:81–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80const parseEffectSingle = () => effectSingleParser.push(parserPayload).length
81const parseEffectChunked = () => {
82 let count = 0
83 for (const chunk of parserChunks) {
84 count += effectChunkedParser.push(chunk).length
85 }
86 return count
87}
88assert.equal(parseEffectSingle(), rowsPerParserRun)
89assert.equal(parseEffectChunked(), rowsPerParserRun)
90

Callers 1

PgCodec.tsFile · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected