Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache#32987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@lunny
Copy link
Member

@lunnylunny commentedDec 26, 2024
edited
Loading

The latest commit cache is currently used only for listing tree files. However, a cold start may take longer than directly invoking the Git command. This PR addresses the issue of slow response times when accessing raw files, improving performance in such scenarios.

gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)

@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelDec 26, 2024
@github-actionsgithub-actionsbot added modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code labelsDec 26, 2024
@lunnylunny added performance/speedperformance issues with slow downs backport/v1.23 and removed modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code labelsDec 26, 2024
@lunnylunny added this to the1.24.0 milestoneDec 26, 2024
@lunnylunnyforce-pushed thelunny/improve_get_treepath_latest_commit branch from7162f0c toe0f7b89CompareDecember 26, 2024 04:59
@github-actionsgithub-actionsbot added modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code labelsDec 26, 2024
@GiteaBotGiteaBot added lgtm/need 1This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelsDec 28, 2024
@GiteaBotGiteaBot added lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1This PR needs approval from one additional maintainer to be merged. labelsDec 30, 2024
@lunnylunny added the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelDec 30, 2024
@lunnylunnyenabled auto-merge (squash)December 30, 2024 02:35
@lunnylunny merged commitf4ccbd3 intogo-gitea:mainDec 30, 2024
26 checks passed
@GiteaBotGiteaBot removed the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelDec 30, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull requestDec 30, 2024
…d from latest commit cache (go-gitea#32987)The latest commit cache is currently used only for listing tree files.However, a cold start may take longer than directly invoking the Gitcommand. This PR addresses the issue of slow response times whenaccessing raw files, improving performance in such scenarios.```loggitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)```
@GiteaBotGiteaBot added the backport/doneAll backports for this PR have been created labelDec 30, 2024
@wxiaoguangwxiaoguang deleted the lunny/improve_get_treepath_latest_commit branchDecember 30, 2024 04:53
lunny pushed a commit that referenced this pull requestDec 30, 2024
zjjhot added a commit to zjjhot/gitea that referenced this pull requestDec 31, 2024
* giteaofficial/main:  Fix issue comment number (go-gitea#30556)  Fix duplicate co-author in squashed merge commit messages (go-gitea#33020)  Merge updatecommentattachment functions (go-gitea#33044)  Move SetMerged to service layer (go-gitea#33045)  Remove aws go sdk package dependency (go-gitea#33029)  Fix settings not being loaded at CLI (go-gitea#26402)  Refactor fixture loading for testing (go-gitea#33024)  Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (go-gitea#32987)  Fix bug automerge cannot be chosed when there is only 1 merge style (go-gitea#33040)  use `-s -w` ldflags for release artifacts (go-gitea#33041)
@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsMar 30, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@wxiaoguangwxiaoguangwxiaoguang approved these changes

+1 more reviewer

@Zettat123Zettat123Zettat123 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

backport/doneAll backports for this PR have been createdlgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/apiThis PR adds API routes or modifies themmodifies/goPull requests that update Go codeperformance/speedperformance issues with slow downs

Projects

None yet

Milestone

1.24.0

Development

Successfully merging this pull request may close these issues.

4 participants

@lunny@wxiaoguang@Zettat123@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp