gotosocial/internal/log
kim e3c2b790fd
[performance] minimise log field allocations ()
* 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
..
caller.go [chore] ensure consistent caller name fetching regardless of compiler inlining () 2024-09-20 13:30:33 +00:00
entry.go [chore] ensure consistent caller name fetching regardless of compiler inlining () 2024-09-20 13:30:33 +00:00
format.go [bugfix] return 400 Bad Request on more cases of malformed AS data () 2023-11-30 16:22:34 +00:00
init.go [chore] ensure consistent caller name fetching regardless of compiler inlining () 2024-09-20 13:30:33 +00:00
level.go [chore] ensure consistent caller name fetching regardless of compiler inlining () 2024-09-20 13:30:33 +00:00
log.go [performance] minimise log field allocations () 2024-11-11 15:45:19 +00:00
pool.go [chore] Improve copyright header handling () 2023-03-12 16:00:57 +01:00
syslog_test.go [chore] Log less output on failed test () 2024-04-04 16:42:42 +01:00
sysloglongunixgram_test.go [chore] Log less output on failed test () 2024-04-04 16:42:42 +01:00