mirror of
1
Fork 0
gotosocial/internal/processing/status
kim e3c2b790fd
[performance] minimise log field allocations (#3529)
* when appending log field only do so by minimal amount

* move slice utils to separate package to fix import cycle, add GrowJust() and AppendJust() functions

* fix GrowJust() not returning slice of same length

* improved xslices tests

* make AppendJust() test check for slice contents, fix AppendJust() final copying behaviour

* add a +1 with field growth to try minimise allocation for log 'msg' field
2024-11-11 15:45:19 +00:00
..
bookmark.go [feature] do not uncache status / emoji media if attached status is bookmarked (#2956) 2024-06-06 11:44:43 +01:00
bookmark_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
boost.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
boost_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
context.go [bugfix/frontend] Don't show replies to hidden parents; return 404 if no "main" thread (#3411) 2024-10-09 12:33:53 +02:00
context_test.go [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) 2024-07-12 20:36:03 +02:00
create.go [performance] minimise log field allocations (#3529) 2024-11-11 15:45:19 +00:00
create_test.go [feature] Use `local_only` field, deprecate `federated` field (#3222) 2024-08-22 19:47:10 +02:00
delete.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
fave.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
get.go [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) 2024-07-12 20:36:03 +02:00
mute.go use pointer for freshness window (#2614) 2024-02-09 14:24:49 +00:00
pin.go [chore] move PopulateAccountStats() nil check often performed into function itself (#3158) 2024-08-02 13:15:11 +01:00
status.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
status_test.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
util.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00