improve composable-cache performance
We saw that under high concurrency, Nth request was taking a lot more time than others. This was caused by the composable cache. Prior to this pull-request, cache was consuming all data stream (the response of the page), just to access it and later convert it to a stream (and discard the data cached). This created a lot of GC pressure and caused a lot of unnecessary memory usage.
Subset of https://github.com/opennextjs/opennextjs-aws/pull/1002
🦋 Changeset detected
Latest commit: 0a946d302070856bb32cb97231217ef3677beca3
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 2 packages
| Name | Type |
|---|---|
| @opennextjs/aws | Patch |
| app-pages-router | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR