1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 04:28:00 +01:00
Smack/smack-core/src
Florian Schmaus 6322f4f826 [core] Add global option to flatten when appending in XmlStringBuilder
For certain use cases, this provides a performance improvement,
probably due better cache locality. However, it comes with the cost of
additional memory consumption.

This was initially suggested by Boris Grozev, who also reported a
significant performance problem of
XmlStringBuilder/LazyStringBuilder. However, the main cause of the
performance probelm was the missing caching of LazyStringBuilder. The
length of the lazy string is now cached by LazyStringBuidler since
70e48300a6 ("[core] Cache length in LazyStringBuilder"), which
accounts for large performance improvement. A significantly smaller
improvement is achieved by this commit and setting
XmlStringBuilder.FLAT_APPEND to 'true'.

Suggested-by: Boris Grozev <boris@jitsi.org>
2023-11-26 21:34:13 +01:00
..
integration-test s/ the the / the /g 2023-02-03 20:53:14 +01:00
main [core] Add global option to flatten when appending in XmlStringBuilder 2023-11-26 21:34:13 +01:00
test Merge branch '4.4' 2023-03-17 18:20:20 +01:00
testFixtures/java/org/jivesoftware/smack Use XMPP connection as local SOCKS5 address 2023-04-26 10:00:23 +01:00