Does this actually run on multiple cores? I can't figure out where the GIL is being dropped.
-
-
I assumed it did. What's an easy way to check on my Mac? Hmm.
2 replies 0 retweets 0 likes -
Check whether you get time speedup by increasing # cores. IMHO prototype I posted would not run without GIL, unless re-coded in Cython.
1 reply 0 retweets 2 likes -
I only have two cores sadly. At work I have a ton, so I'll try on Tuesday.
2 replies 0 retweets 1 like -
I'm going to write this thing in serial code in C now just for "fun".
2 replies 0 retweets 1 like -
step 1: to do geopy.distance.great_circle(a,b).km in C :-)
1 reply 0 retweets 1 like -
hehehe yes I am actually going way slower because I'm struggling with remembering C https://en.wikipedia.org/wiki/Haversine_formula …
2 replies 0 retweets 1 like -
they do it a bit differently in https://github.com/geopy/geopy/blob/master/geopy/distance.py … (lines 240-257)
1 reply 0 retweets 0 likes -
huh I wonder if it's actually different or not?
1 reply 0 retweets 0 likes -
it's probably not, just using arctan instead of arcsin. So you data is in degrees?
1 reply 0 retweets 0 likes
latitude and longitude yeah
-
-
decimal lat and lon not degrees though
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.