Skip to content

[BUG] diff calculation is slow #20734

Closed as not planned
Closed as not planned

Description

@natewill

Description

Snapshot.diffFull is slow, 13s on a 1000 file diff. This can be sped up. I'm proposing a fix soon

Plugins

No response

OpenCode version

No response

Steps to reproduce

A quick test is to revert a message with many file changes and see how long it takes for the diff to be calculated

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    perfIndicates a performance issue or need for optimization
    on Apr 2, 2026
  2. github-actions commented on Apr 2, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If these cover the same fix, it may be worth consolidating.

  3. assigned and unassigned on Apr 26, 2026
  4. removed
    bugSomething isn't working
    perfIndicates a performance issue or need for optimization
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. asaf92 commented on May 31, 2026

    @asaf92

    Also related:
    #29762

    This can run for dozens of minutes when tje file is large enough

  6. github-actions commented on Jul 31, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions