piotrwitek/typesafe-actions

High memory consumption #168

zdila posted onGitHub

Description

Cmpiling application with couple of reducers (20) and action creators (200) takes 2 GB RAM and requires passing --max-old-space-size to node when invoking tsc. Before fixing #164 it was much worse but it is still unuseable.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Download and unpack https://drive.google.com/file/d/1FUzk5NeRfxUvwd4eXCxIFcb7Scmvh9D4/view?usp=sharing
  2. run npm i
  3. run node --max-old-space-size=8192 ./node_modules/.bin/tsc --diagnostics
  4. See the result

Expected behavior

Compilation of such project should be a piece of cake ;-)

Suggested solution(s)

Improve types or identify bug in TypeScript.

Project Dependencies

  • Typesafe-Actions Version: 4.4.1
  • TypeScript Version: 3.5.2
  • tsconfig.json: included in the tgz

Environment (optional)

  • OS: Debian Linux Buster
  • Node Version: 12.4.0
  • Package Manager and Version: npm 6.9.0

Fund this Issue

$140.00
Rewarded

Rewarded pull request

Recent activities

piotrwitek was rewarded for piotrwitek/typesafe-actions# 168
over 5 years ago