-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance: improve event.clone memory usage #11794
Conversation
Test fail because we explicitly check for a different AFAICT, we exclusively send Since
|
Hey Ry, thanks. You're way ahead of me 🥰 was doing some LS testing to "prove" this makes sense. |
I've checked Actually not sure doing |
bba27b1
to
627be64
Compare
627be64
to
c4113d0
Compare
c4113d0
to
91ac9c8
Compare
for Strings with copy-on-write semantics when deep cloning. motivated by "big" events reaching plugins such as split, which might produce several new events out of a single one.
for Strings with copy-on-write semantics when deep cloning. motivated by "big" events reaching plugins such as split, which might produce several new events out of a single one. Fixes #11794
for Strings with copy-on-write semantics when deep cloning. motivated by "big" events reaching plugins such as split, which might produce several new events out of a single one. Fixes #11794
by doing copy-on-write strings when deep cloning
this is motivated "big" events reaching plugins such as split
which might produce several new events out of a single one ...
did a naive test using
LS_JAVA_OPTS="-Xms300m -Xmx300m"
with a JSON event prototype:(1)
doClone
is getting out-of-memory spliting ~ 850-th event (after 5:30 minutes)(1)
strDup
COW is getting stuck ~ 1550-th event (after 6:00 minutes)The setup is very artificial but serves well and was motivated by a real-world scenario which was actually way more "agressive" - spliting on an array with 100s of elements (here we only have 5).