Hi Noel,
On Mon, Apr 13, 2020 at 7:46 PM Noel Grandin <noelgrandin@xxxxxxxxx> wrote:
HiI notice when performance tuning that our drawinglayer stuff spends quite some time converting back and forth between XPrimitive2D and BasePrimitive stuff and copying sequence->vector and vector->sequence.Now as far as I can see (analysis below), the stuff exposed in our UNO layer is not usable from extensions because it doesn't tie into anything useful, so nothing should change as far as that goes.The benefit is that it becomes easier to optimise the copying and moving around of this stuff if it is C++ layers all the way down, with no UNO stuck in the middle of it.First stage of this change here:
Anyway, an alternative to this would also be to create a XPrimtiive2DContainer UNO interface, which would allow to "transport" the Primitive2DContainer unmodified and wouldn't require that we convert, only on demand convert that to Sequence<XPrimitive2D>. Not sure if this solution is any better...
Regards, Noel
Regards, Tomaž
_______________________________________________ LibreOffice mailing list LibreOffice@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/libreoffice