Skip to content

Website build performance #2480

Description

@timotheeguerin

This is an issue to put findings about the website build performance. I am not sure there is much we can do without sacrificing the content or trying to migrate out of docusaurus.

History

Perf degraded significantly when migrating to the new JS API markdown format.

From 2-> 5min
bc32d92
Improve JS Ref docs (#2188)

From 5->13min
c9a2751
Prepare typespec publish for September release (#2409)

Number of files

After investigation it doesn't even seem to be due to the content of the new docs but due to a larger number of docs.
Changing all the content of the files to only have placeholder string result in about the same time. So this really seems to be a problem where it gets exponentially worse with the number of files.

Js loader

Switching the js loader. Using swc-loader speeds up the build part by 50% (2-3min down to 1-1.5) but then it still gets sutck at the cache (99%) shutdown IdleFileCachePlugin for the rest of the time.

Increase memory

Memory usage is close to the 4g but increasing to 8g doesn't make it use much more and doesn't change the performance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions