react/fixtures
Josh Story fa58002262
[Fizz] Pipeable Stream Perf (#24291)
* Add fixture for comparing baseline render perf for renderToString and renderToPipeableStream

Modified from ssr2 and https://github.com/SuperOleg39/react-ssr-perf-test

* Implement buffering in pipeable streams

The previous implementation of pipeable streaming (Node) suffered some performance issues brought about by the high chunk counts and innefficiencies with how node streams handle this situation. In particular the use of cork/uncork was meant to alleviate this but these methods do not do anything unless the receiving Writable Stream implements _writev which many won't.

This change adopts the view based buffering techniques previously implemented for the Browser execution context. The main difference is the use of backpressure provided by the writable stream which is not implementable in the other context. Another change to note is the use of standards constructs like TextEncoder and TypedArrays.

* Implement encodeInto during flushCompletedQueues

encodeInto allows us to write directly to the view buffer that will end up getting streamed instead of encoding into an intermediate buffer and then copying that data.
2022-04-11 09:13:44 -07:00
..
art Upgrade art fixtures to babel 7 (#16235) 2020-07-25 23:43:49 -04:00
attribute-behavior test: Update attribute fixture snapshot (#24083) 2022-04-05 02:59:26 +01:00
blocks Move createRoot/hydrateRoot to react-dom/client (#23385) 2022-03-01 00:13:28 -05:00
concurrent/time-slicing Move createRoot/hydrateRoot to react-dom/client (#23385) 2022-03-01 00:13:28 -05:00
devtools Some remaining instances of master to main (#21982) 2021-07-30 08:56:55 -04:00
dom Improve DEV errors if string coercion throws (Temporal.*, Symbol, etc.) (#22064) 2021-09-27 10:05:07 -07:00
eslint Bump Prettier (#17811) 2020-01-09 13:54:11 +00:00
expiration Bump handlebars from 4.0.11 to 4.5.3 in /fixtures/expiration (#17729) 2019-12-30 08:57:08 -08:00
fiber-debugger Rename effect fields (#19755) 2020-09-04 14:34:07 -07:00
fiber-triangle Publish a local release (canary or stable) to NPM (#14260) 2018-11-23 12:37:18 -08:00
fizz [Fizz] Pipeable Stream Perf (#24291) 2022-04-11 09:13:44 -07:00
fizz-ssr-browser Add onErrorShell Callback (#23247) 2022-02-08 22:38:14 -05:00
flight [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToPipeableStream(...).pipe(writable) (#22450) 2021-10-06 00:31:06 -04:00
flight-browser [Flight] Prevent non-Server imports of aliased Server entrypoints (#20422) 2020-12-10 03:55:38 +00:00
legacy-jsx-runtimes Throw when `act` is used in production (#21686) 2021-06-16 16:29:51 -04:00
nesting Nesting Fixture (#19531) 2020-08-07 02:08:41 +01:00
packaging Remove /dist/ UMD builds (#18473) 2020-04-02 17:52:32 -07:00
scheduler Add test of scheduler overhead (#16260) 2019-08-01 17:13:39 -07:00
ssr Fix fixture 2022-03-25 17:38:10 +00:00
ssr2 Fix for SSR2 fixture not working locally (#24237) 2022-04-01 00:26:12 +01:00
stacks Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00