https://bugs.freedesktop.org/show_bug.cgi?id=60977

--- Comment #8 from Christian Fries <[email protected]> ---
Thank you for considering this. From a plugin-developers perspective I would
suggest:
- Have RECALC_ONLOAD on load for all functions which are not build-in (Macros
and Externals).
- In a later version: Introduce some way such that macros and UNO add-ins can
declare being "nonvolatile", that is, compatible with RECALC_ONLOAD. This could
be a keyword in Basic or some special way of registering the function.

I thought that one might classify functions provided via UNO just by their
return value, e.g., to have RECALC_ONLOAD only for those who declare an
XVolatileResult as a return value. However, I would suggest not to do this.
This would mean that all functions have to return XVolatileResult if they need
a RECALC_ONLOAD, even if their later behavior is non-volatile (the
"getDocumentPath" could be an example for such a function). From my experience
XVolatileResult introduces a bigger overhead (caching, listeners, etc.) and has
some negative impact on the performance, see bug 53060 for example.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to