Created attachment 59255 [details]
On attached rtf, libreoffice consumes 1.5 Gb of ram.
Thanks for the report - on -3-5 here, only 111m of memory is used with this test document, I guess due to the backport of Arnauld's fix to -3-5:
Are you sure this is with 3.5.2 rcX, and not 3.5.1 or some earlier version? The above fix landed in 3.5.2rc1.
Carelessly chosen :) Version 3.5.1
ID сборки: 350m1(Build:102)
I will try to build the latest version from source code.
Apparently fixed in 3,5,2.