pytzwhere
pytzwhere copied to clipboard
OOM kills the process due to lack of memory
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**