JetBrains / MPS-extensions

MPS-extensions aims to ease language development within MPS.
https://jetbrains.github.io/MPS-extensions/
Apache License 2.0
80 stars 47 forks source link

cellayout: Investigate the possibility to cache the grid in AbstractGridLayout #733

Open alexanderpann opened 6 months ago

alexanderpann commented 6 months ago

loadGrid is called for calculating the ascent, maximum/minimum inner size etc but I think the grid could be cached for ILayoutableContainer+size constraint key pairs. I didn't work for me for some reason but it would speed up the celllayout language a lot as I noticed with the profiler. One use is is the richtext language which is used by com.mbeddr.doc where the relayouting can be very slow when typing a lot of letters very fast.