Use immutable strings in our data model #6991
Labels
domain: data model
Anything related to Vector's internal data model
domain: performance
Anything related to Vector's performance
We know from #6831 that vector has high allocation pressure. It's basic datum -- the
Event
-- encodes aString
in several places but does not mutate this string. We can shave at least one word from eachEvent
by usingBox<str>
in these places. Resolution of this ticket will collide somewhat with #5374 but the work is complementary. This will also have bearing on #6673 as well, buying headroom if nothing else.The text was updated successfully, but these errors were encountered: