Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bellisario/sdeno

Steno on Deno. Specialized fast async file writer.
https://github.com/bellisario/sdeno

deno

Last synced: about 2 months ago
JSON representation

Steno on Deno. Specialized fast async file writer.

Awesome Lists containing this project

README

        

# Sdeno ![Deno](https://img.shields.io/badge/Deno-000000?logo=deno&logoColor=white) [![Test](https://github.com/Bellisario/sdeno/actions/workflows/test.yml/badge.svg)](https://github.com/Bellisario/sdeno/actions/workflows/test.yml) ![Dependencies](https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fhttps%2Fdeno.land%2Fx%2Fsdeno%40v1.0.0%2Fmod.ts)

> Sdeno, Steno on Deno\
> Specialized fast async file writer

**Sdeno** makes writing to the same file often/concurrently fast and safe.

## Original Project

This project is a [Deno](https://deno.land) "wrapper" for [Steno](https://github.com/typicode/steno) (by [typicode](https://github.com/typicode)).

## Installation

Because this is a Deno wrapper, you need to import it from this URL like that:

```js
import { Writer } from 'https://deno.land/x/sdeno/mod.ts';
```

## Usage

For usage, see [Steno Usage](https://github.com/typicode/steno).

## Benchmark

`deno task bench` (see `src/benchmark.ts`)

Benchmark results are a little different [from the original project](https://github.com/typicode/steno#benchmark) because here we're using Deno instead of Node.js.

```
Write 1KB data to the same file x 1000
fs : 462ms
sdeno : 4ms

Write 1MB data to the same file x 1000
fs : 2551ms
sdeno : 7ms
```

_Sdeno (as Steno) uses a smart queue and avoids unnecessary writes._

---

\
_**Warning:** Benchmark can vary depending on the machine and the OS you're using._