gitea/models/issues
zeripath ef4fc30246
Speed up HasUserStopwatch & GetActiveStopwatch (#23051)
GetActiveStopwatch & HasUserStopwatch is a hot piece of code that is
repeatedly called and on examination of the cpu profile for TestGit it
represents 0.44 seconds of CPU time. This PR reduces this time to 80ms.

---------

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: delvh <leon@kske.dev>
2023-02-27 13:46:00 -05:00
..
assignees_test.go
assignees.go
comment_code.go some refactor about code comments (#20821) 2023-01-17 15:03:44 -06:00
comment_list.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
comment_test.go Support importing comment types (#22510) 2023-01-18 21:14:56 -05:00
comment.go Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
content_history_test.go
content_history.go
dependency_test.go
dependency.go
issue_index.go
issue_list_test.go
issue_list.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
issue_lock.go
issue_project.go Improve issues.LoadProject (#22982) 2023-02-20 13:21:56 -06:00
issue_test.go Scoped labels (#22585) 2023-02-18 21:17:39 +02:00
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go Fix more HTMLURL in templates (#22831) 2023-02-09 11:31:30 -05:00
issue.go Add "Reviewed by you" filter for pull requests (#22927) 2023-02-24 21:55:50 -05:00
label_test.go Scoped labels (#22585) 2023-02-18 21:17:39 +02:00
label.go Fix DBConsistency checks on MSSQL (#23132) 2023-02-24 16:45:55 -05:00
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
milestone_test.go
milestone.go
pull_list.go Set PR for issue when load attributes for PRs (#22766) 2023-02-05 08:24:43 -06:00
pull_test.go
pull.go Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
reaction_test.go
reaction.go
review_test.go Restore previous official review when an official review is deleted (#22449) 2023-01-15 07:00:09 +02:00
review.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
stopwatch_test.go Speed up HasUserStopwatch & GetActiveStopwatch (#23051) 2023-02-27 13:46:00 -05:00
stopwatch.go Speed up HasUserStopwatch & GetActiveStopwatch (#23051) 2023-02-27 13:46:00 -05:00
tracked_time_test.go
tracked_time.go