Efficiently export huge data trees

I am searching for a way to efficiently export huge data trees from the ladybug sunlight hours grafted results output in order to perform some further processing in python.
I already tried to write my own python component however converting the trees to python lists via the ghpythonlib library causes an MemoryError since Rhino uses over 20 GB of RAM.
Do you know of an memory efficient way how to save the whole data tree to a file?

Hi,@martintum You should post more details about the huga data trees. As I know, ladybug sunlight hours compotent is treated one geometry as one joined mesh. Maybe you should join your geometry or flatten the list of your geometry.