node-redis icon indicating copy to clipboard operation
node-redis copied to clipboard

Reduce lib load

Open frelars opened this issue 2 years ago • 0 comments

Motivation

Importing redis noticeable affects startup time in node and typechecking performance in vs code. Root cause are all the small command-files that need to be loaded by node and typescript. This can be fixed by bundling all the small command files into one command bundle, both js and d.ts files.

By patching local system I reduced node startup time from 250ms to 150ms and vs-code is responsive again.

Basic Code Example

No response

frelars avatar Oct 16 '23 06:10 frelars