Skip to content

Conversation

@simbadmorehod
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants