Skip to content

Extreme memory usage with large blocks of text #627

@Ansury

Description

@Ansury

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.

rtfx1

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.

rtfx2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions