eknkc / ssr-benchmark

Benchmarking JS web framework SSR performance
758 stars 171 forks source link

perf(nuxt): use shallow ref + separate data chunk #31

Closed danielroe closed 7 months ago

danielroe commented 7 months ago

This does two things:

  1. it loads testdata as an async chunk. As you've switched to using useAsyncData, we can benefit from a built-in optimisation that we do not need to rerun or load this function/data on the client
  2. it uses a non-deeply reactive data structure for storing the data (a regression when the benchmark switched to useAsyncData). This will be the default in Nuxt v4.