pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Full content pane is super super slow.

Open Ducasse opened this issue 1 year ago • 5 comments

world

Ducasse avatar Jun 19 '24 08:06 Ducasse

Try 'world.svg' asFileReference readStream contents and click on full contents.... go and take a coffee

Ducasse avatar Jun 19 '24 08:06 Ducasse

This is why we have Preview and Full Contents.

Since the full contents can be huge and to a lot of time to load we show only a subset at the beginning.

Maybe we could check the size of the String and above a certain size we display a warning to the user asking if he is sure he wants to display the full content?

jecisc avatar Jun 19 '24 09:06 jecisc

I have the impression that there might be room for optimization in Rubric but since it's Morphed based, should we invest in that?

jecisc avatar Jun 19 '24 14:06 jecisc

One performance problem I'm seing is that, while Rubric Morph is not open, each operation applied will cause a recomposition of the text. So each time Spec Morphic adapter is applying a method such as #beWrapped before opening the morph, it will still recompute all the text.

An optimization could be to not compute when the Morph is closed and compute only when we open or update. But I have no idea of how long this would take

jecisc avatar Jun 19 '24 14:06 jecisc

Indeed I think that we should not invest now I hope that album is faster. @plantec

Ducasse avatar Jun 19 '24 14:06 Ducasse