Build: #1846 failed
Job: Default Job failed
Code commits
Smack (master)
-
Florian Schmaus <flo@geekplace.eu> 45a498781812791e3c2ed5e843ef1e97996e3381
[smack-debug] Factor duplicate code into its own method
-
Florian Schmaus <flo@geekplace.eu> ae2394ea831e2b68771df41ef7edf11e7337d953
Merge pull request #507 from guusdk/enhanced-debugger-performance
Increase performance of EnhancedDebugger -
Guus der Kinderen 8be1568a5d885b713e0172ffe9b50a200dd4181d
Increase performance of EnhancedDebugger
When using the Enhanced Debugger, a UI application is very noticably slow, especially around establishing a new
session. Profiling shows that much of the overhead is caused by XMPP-data being added to the text areas that are
on the "raw sent packets" and "raw received packets" tabs of the debugger.
This commit improves performance (considerably) by:
- properly limiting the amount of lines in those text areas (this was intended but broken in the old implementation)
- buffering data to be added in batches, to reduce the amount of invocations to JTextChat.append()
As an aside: some newline-based formatting was removed. As the provided data is now already formatted, retaining that
did not make much sense anymore.