[artistictextshape plugin] Try to limit RAM usage
ClosedPublic

Authored by anthonyfieroni on Mar 18 2017, 8:09 AM.

Details

Summary

Cache increase even more ram usage, but with patch GB ram still present. I'm looking for solution.

Test Plan


Test file

Massif

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
anthonyfieroni created this revision.Mar 18 2017, 8:09 AM

2nd try, addText rather than addPath when doesn't have rotations

anthonyfieroni updated this revision to Diff 15976.EditedJun 29 2017, 4:30 AM

The root problem is when it has a 20k+ raw text lines (i.e. without curves or boundary) QPainterPath is extremely expensive. This approach does not fix the problem, only tries to minimize RAM usage. I will commit it in one week if someone does not have better approach.

This revision was automatically updated to reflect the committed changes.