Is it normal/expected to see this kind of memory usage? Memory is shown at the top of the screencaps.
The first one is a modified version of one of the demos which adds 4,000 lines. Memory usage on that one spikes to about twice what's shown here, and then drops down. It also functions fine.

This second screenshot is with 400,000 extra rows of text added. Demo becomes unusable with this much text. When I add a single letter to a row, it freezes for a few seconds before showing the character. Scrolling still works okay, but the rendering speed isn't great. Memory usage... 2GB? ❗ ❗ ❗ It also fluctuates wildly (up to 1GB or so) when scrolling, which is only going to make things worse.

I made every line different on purpose since it looks like some optimizations are going on under the hood, but even without that I still see this behavior.
I'm running on Linux. Oracle JRE 8u144
Is it normal/expected to see this kind of memory usage? Memory is shown at the top of the screencaps.
The first one is a modified version of one of the demos which adds 4,000 lines. Memory usage on that one spikes to about twice what's shown here, and then drops down. It also functions fine.
This second screenshot is with 400,000 extra rows of text added. Demo becomes unusable with this much text. When I add a single letter to a row, it freezes for a few seconds before showing the character. Scrolling still works okay, but the rendering speed isn't great. Memory usage... 2GB? ❗ ❗ ❗ It also fluctuates wildly (up to 1GB or so) when scrolling, which is only going to make things worse.
I made every line different on purpose since it looks like some optimizations are going on under the hood, but even without that I still see this behavior.
I'm running on Linux. Oracle JRE 8u144