-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High memory consumption #168
Comments
I can confirm that as well. Cold start of |
Probably related to this, I noticed when I changed all my reducers from standard switch case to createReducer, compiler typechecking and autocomplete (in both VSCode and IntelliJ) slowed down noticably to the point where it's painful to use |
@mmalicki that was actually also my case |
Thanks for the reproduction case 👍. I have confirmed an issue and will be working on that. |
@issuehunt has funded $140.00 to this issue.
|
I can also confirm the issue. Thanks so much for looking into it! |
PR is ready, now it's infinitely scalable. will release a new version tomorrow. @zdila You can test it now using the following in your project to confirm: |
@piotrwitek thanks, but with |
@zdila you can build the project locally and copy the dist folder or wait for me to release under the next branch in a few hours |
Published on npm as |
@piotrwitek has rewarded $98.00 to @piotrwitek. See it on IssueHunt
|
Shouldn't that be released as v4.5.0 since it's a major performance issue? |
There is a breaking change in the API and I'm respecting semver. |
After upgrading to @next release, project hangs on tsc again with memory leak at the end (19x createAsyncAction, 1x createStandardAction). |
In my case |
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 invokingtsc
. Before fixing #164 it was much worse but it is still unuseable.Steps to Reproduce
Steps to reproduce the behavior:
npm i
node --max-old-space-size=8192 ./node_modules/.bin/tsc --diagnostics
Expected behavior
Compilation of such project should be a piece of cake ;-)
Suggested solution(s)
Improve types or identify bug in TypeScript.
Project Dependencies
Environment (optional)
IssueHunt Summary
[
<
i
m
g
s
r
c
'
h
t
t
p
s
:
/
/
a
v
a
t
a
r
s
0
.
g
i
t
h
u
b
u
s
e
r
c
o
n
t
e
n
t
.
c
o
m
/
u
/
7
3
9
0
7
5
?
v
4
'
a
l
t
'
p
i
o
t
r
w
i
t
e
k
'
w
i
d
t
h
2
4
h
e
i
g
h
t
2
4
p
i
o
t
r
w
i
t
e
k
]
(
h
t
t
p
s
:
/
/
i
s
s
u
e
h
u
n
t
.
i
o
/
u
/
p
i
o
t
r
w
i
t
e
k
)
h
a
s
b
e
e
n
r
e
w
a
r
d
e
d
.
Backers (Total: $140.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: