Memory Leak in Embed API?
I'm building an application using the Embed API. The client is using this application to view and annotate large PDFs (in the range of 25-60MB). It seems that as he scrolls through the document, the further he gets through it the worse the application runs. I've done some initial profiling in Chrome and it looks like the memory consumption of the Embed part of the application just continues to grow as you scroll through the document. I didn't dig into it too much, but at first pass it looked like it had something todo with mobx.
It seems as though there might not be any virtualization in the Embed API so as pages are created (and potentially made observable (if mobx)) nothing is removing listeners / subscriptions.
Anyways, it's unfortunately a bit of a deal breaker for my client so I told them that I would investigate.
