Benefits and downsides of Atom
s
#1891
Labels
domain: data model
Anything related to Vector's internal data model
domain: performance
Anything related to Vector's performance
meta: idea
Anything in the idea phase. Needs further discussion and consensus before work can begin.
type: tech debt
A code change that does not add user value.
In this issue I want to discuss are there still any real benefits in using
Atom
s as key values inLogEvent
instead ofString
s.It seems to me that switching to
BTreeMap
(which uses actual strings comparisons instead of comparing hashes) and introduction of default log schemas (#1769, which reduced use of static atoms) greately reduced benefits of usingAtom
s instead of plainString
s. On the other hand, maintaining code working withString
s directly is easier and some invocations ofclone
over the codebase could potentially be avoided with them.The text was updated successfully, but these errors were encountered: