QGIS/python/core/auto_generated
Jean Felder 27ebce6dad qgsfeature: Optimize setAttribute python call
This change is similar to the one introduced in the previous
commit for `QgsAttributes` . The python call of `setAttribute` expects
a `QVariant` as input. sip is able to directly handle `QVariant` but
this allocation can be slow.

In some cases, it is possible to speed-up the `setAttribute` call by
checking the type of the attribute. If the attribute is a boolean, an
integer, a float or a string, it is possible to avoid the intermediate
sip QVariant allocation done by `sipConvertToType`.

Based on some testing, this allows to speed-up a python `setAttribute`
call up to 80%. If the python attribute is already a `QVariant`, then
one get the same time.
2024-05-23 05:15:16 +10:00
..
2024-02-29 06:03:03 +10:00
2024-01-31 13:48:49 +10:00
2024-02-18 20:57:23 +01:00
2024-05-22 13:44:52 +10:00
2024-02-29 06:03:03 +10:00
2024-02-12 12:48:27 +10:00
2024-03-11 09:32:40 +07:00
2023-08-23 08:37:26 +03:00
2022-07-09 07:12:08 +10:00
2023-02-06 08:41:25 +10:00
2022-08-02 06:41:52 -07:00
2024-02-29 06:03:03 +10:00
2023-04-06 11:57:58 +10:00
2022-12-21 11:26:20 +01:00