Closed pederhan closed 2 months ago
This PR aims to reduce the memory usage after #81, which introduced Pydantic models for all API objects.
The PR makes the following adjustments:
"output": "extend"
ZabbixAPI.get_hosts()
Host
.keys()
This PR aims to reduce the memory usage after #81, which introduced Pydantic models for all API objects.
The PR makes the following adjustments:
"output": "extend"
for many API methods, reducing the amount of data we fetch.ZabbixAPI.get_hosts()
into a generator ofHost
objects instead of using a list comprehension to return a list..keys()
on large dicts