pytzwhere icon indicating copy to clipboard operation
pytzwhere copied to clipboard

OOM kills the process due to lack of memory

Open simbadmorehod opened this issue 3 years ago • 0 comments

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**

simbadmorehod avatar Oct 15 '22 06:10 simbadmorehod