MCPcopy
hub / github.com/remix-run/remix / parse

Function parse

packages/tar-parser/bench/parsers/tar-parser.ts:4–14  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

2import { openLazyFile } from '@remix-run/fs'
3
4export async function parse(filename: string): Promise<number> {
5 let stream = openLazyFile(filename).stream().pipeThrough(new DecompressionStream('gzip'))
6
7 let start = performance.now()
8
9 await parseTar(stream, (_entry) => {
10 // Do nothing
11 })
12
13 return performance.now() - start
14}

Callers

nothing calls this directly

Calls 5

openLazyFileFunction · 0.90
parseTarFunction · 0.90
pipeThroughMethod · 0.80
nowMethod · 0.80
streamMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…