pegler / pytzwhere

python library to look up timezone from lat lng offline
Other
145 stars 54 forks source link

OOM kills the process due to lack of memory #59

Open simbadmorehod opened 1 year ago

simbadmorehod commented 1 year ago

Querying the time zone by coordinates, eats more than 500MB of memory, which causes my product to stop on the server.
Are there any examples of code optimization?

.service: Main process exited, code=killed, status=9/KILL .service: Failed with result 'signal'.

**from tzwhere import tzwhere

async def get_tz(latitude, longitude): tz = tzwhere.tzwhere(forceTZ=True) tz = tz.tzNameAt(latitude, longitude, forceTZ=True) return tz**