Skip to content

Bad Performance on lagre PRs #26201

Closed
@thigg

Description

@thigg

Description

I tried this with the current deployment on try: https://try.gitea.io/thigg/podqast/pulls/1/files
with 85k additions and 12k deletions and even though the site is loading in a matter of 10s of seconds I can not really type comments in there as there is a several seconds lag between typing and seeing the letter on the screen.

I agree that you should not have PRs this big... but if you get into the situation for some reason, it would be nice if at least gitea would not get in your way too.

Also note that this is an extreme example. I can watch our gitea while typing on a 6k LOC review.

To reproduce:Create a large PR, scroll down: click show More twice and try to add a comment. Letters are having now a significant delay between your keypress and appearance on screen.

Gitea Version

1.21.0+dev-410-g7866a6e0e and 1.20.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

It looks like the browser is extremly Slow. I ran the firefox profiler and it says it spends its time in Reflow with get Element.scrollHeight:
grafik

Unfortunatley I lack the knowledge to provide further assistance here.

Git Version

No response

Operating System

No response

How are you running Gitea?

apt repository in qemu

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions