[PR #3159] [CLOSED] Make ParsePatch more performant #16804

Closed
opened 2025-11-02 12:19:30 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3159
Author: @bkcsoft
Created: 12/11/2017
Status: Closed

Base: masterHead: optimize-parse-patch-read-loop


📝 Commits (3)

📊 Changes

3 files changed (+109 additions, -12 deletions)

View changed files

📝 integrations/api_issue_test.go (+1 -1)
📝 models/git_diff.go (+35 -11)
📝 models/git_diff_test.go (+73 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3159 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 12/11/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `optimize-parse-patch-read-loop` --- ### 📝 Commits (3) - [`a79ae77`](https://github.com/go-gitea/gitea/commit/a79ae7715652fe356efe6be595af271e130b230b) Make ParsePatch more performant - [`7635ba9`](https://github.com/go-gitea/gitea/commit/7635ba90387e98fa4da7283b3fa54aa0dc1a3acc) make it compile - [`c1768c5`](https://github.com/go-gitea/gitea/commit/c1768c5b6429e4cc40ad7874ca93b934c48062df) Add some bench and little test ### 📊 Changes **3 files changed** (+109 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_issue_test.go` (+1 -1) 📝 `models/git_diff.go` (+35 -11) 📝 `models/git_diff_test.go` (+73 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:19:30 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16804