Skip to content

Dev mode turbopack performance is bad #83553

@geclos

Description

@geclos

Link to the code that reproduces this issue

https://github.com/latitude-dev/latitude-llm

To Reproduce

Follow instructions here https://docs.latitude.so/guides/self-hosted/development-setup

Current vs. Expected behavior

Takes several seconds to compile each page in dev mode. I would like it to take less than a second each page. Tried to debug it with turbopack tracing but not sure how to consume that file. I attach it here in case it's helpful.

https://drive.google.com/file/d/1omz140dDIjX9m7ZBUV9HQBFZH2GyZsfW/view?usp=sharing

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 9.8.0
Relevant Packages:
  next: 15.5.2 // Latest available version is detected (15.5.2).
  eslint-config-next: N/A
  react: 19.0.0-rc-5d19e1c8-20240923
  react-dom: 19.0.0-rc-5d19e1c8-20240923
  typescript: 5.8.3
Next.js Config:
  output: standalone

Which area(s) are affected? (Select all that apply)

Performance

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

On latest 15.x version

Metadata

Metadata

Assignees

No one assigned

    Labels

    PerformanceAnything with regards to Next.js performance.TurbopackRelated to Turbopack with Next.js.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions