-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Milestone
Description
We are performing way too many allocations in the StartWritingLogs function in the server log writer file. We need to optimize that so that high bursts of incoming log traffic could be ingested. Things we can try:
- We can move the code in the
BarkLogDao.InsertBatchfunction to theStartWritingLogsfunction - that should avoid the memory copy required for making the function call and the memory allocations happening inside theInsertBatchfunction. - We can allocate a variable for large, medium and small batches. These should be arrays instead of slices so that the loop does not have to reallocate the slice on append.
Metadata
Metadata
Assignees
Labels
No labels