Now project based custom functions are a thing (QGIS 3.44) I could streamline some of my management of QGIS expressions that get used in various places, so rather than finding all the instances of a certain expression in a project I can have them all use a custom function which I can manage in one place. Will this create performance issues/ will custom python functions execute slower?
-
Excellent question for discussion, which could also be asked here reddit.com/r/QGIS. I would follow a rule of thumb: If your function does lightweight logic, e.g. mathematics, the performance hit is minimal. If it involves complex geometry or spatial operations, caching or precomputation may be necessary, as the expression engine must call into the Python interpreter for each evaluation.Taras– Taras ♦2025-11-12 17:45:48 +00:00Commented Nov 12 at 17:45
-
So questions for discussion better on reddit ? My expressions include geometry and spatial operations.Sethinacan– Sethinacan2025-11-12 20:06:58 +00:00Commented Nov 12 at 20:06
Add a comment
|