Skip to content
Discussion options

You must be logged in to vote

Hi @meteoDaniel,

This should be resolved as of v0.129.0: KMLReader was rewritten to parse the KMZ as a stream rather than loading the whole decompressed KML into memory (provider/dwd/mosmix/access.py):

  • the zip is opened as a streaming handle fed to lxml.etree.iterparse(events=("end",));
  • after each Placemark is processed it is cleared and every preceding sibling under the root is deleted, so the tree never holds more than one placemark at a time;
  • peak memory is now bounded roughly by the compressed file size instead of the ~600 MB+ decompressed MOSMIX-L payload.

Could you retry with wetterdienst>=0.129.0 (latest is 0.131.0) on a MOSMIX-L all-stations file and report the peak RAM you see …

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@amotl
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gutzbenj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants