Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Hit recursion limit in Firefox #1524

Open
Robinfr opened this issue Nov 6, 2017 · 4 comments
Open

Hit recursion limit in Firefox #1524

Robinfr opened this issue Nov 6, 2017 · 4 comments

Comments

@Robinfr
Copy link

Robinfr commented Nov 6, 2017

I have a system that has to merge a lot of observables together (1,500 of them) using Rx.Observable.merge. However, doing this, I seem to hit the recursion limit in Firefox. Are the observables being merged recursively?

A fix seems to be to split them up into chunks of 500 and merge those, and the merge the results once more.

What is the correct solution here? And am I right in understanding that the observables get merged recursively?

@paulpdaniels
Copy link
Contributor

Stackoverflow is going to get you more responses as its format is more for Q&A. Also unless you are stuck with RxJS < 5 you should post bugs at ReactiveX/rxjs instead. This repo is in maintenance mode and you won't get timely responses.

@Robinfr
Copy link
Author

Robinfr commented Nov 7, 2017

Ah unfortunately I am stuck with version 4. Also, I posted it because I feel like this might have to with an implementation detail the developers are more aware of. Are you aware of any changes they've made to the observable merging going from 4 to 5?

@paulpdaniels
Copy link
Contributor

I'm not sure I haven't followed that operators development for a while. I am not entirely sure what you are doing in your use case, could you post some code? Is it something like Observable.merge([...arrayOf1500])?

@Robinfr
Copy link
Author

Robinfr commented Nov 7, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants