AIFeed

构建初始化速度提升最高达14秒

AI summary

最慢的构建缓存恢复时间从数秒降至毫秒级,这一改进也惠及构建初始化阶段。所有方案的该阶段平均加快2.3秒,P90加快6.5秒;缓存越大提升越明显,P99最高加快14秒。实际案例中,一个小型Python后端构建初始化加快约35%,缓存恢复从1.3秒降至3毫秒;一个大型Next.js文档站点构建初始化加快约30%,缓存恢复从8.6秒降至8毫秒。

Translation(model translation, not the source's own text)
题图
题图

最慢的构建缓存恢复耗时从数秒降至毫秒级。

这一提升也体现在构建初始化阶段,即从构建开始到构建命令执行之间的这段时间。在所有套餐中,该阶段现在平均快 2.3s,P90 快 6.5s。构建缓存越大,提升越明显,其中 P99 提升最多,快了 14s。

以下是两个真实构建在改动前后的对比示例:

  • 一个小型 Python 后端:构建初始化现在约快 35%构建缓存恢复从 1.3s 降至 3ms

一个小型 Python 后端:构建初始化现在约快 35%

  • 构建缓存恢复从 1.3s 降至 3ms
  • 我们最大的 Next.js 文档站点之一:构建初始化现在约快 30%构建缓存恢复从 8.6s 降至 8ms

我们最大的 Next.js 文档站点之一:构建初始化现在约快 30%

  • 构建缓存恢复从 8.6s 降至 8ms

在构建缓存文档中了解更多。

Only about 496 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗