Description
I pulled out a project I hadn't used in a month or two and found that cenpy now introduces a huge amount of latency. Importing the module does it. Instantiating a cenpy.products.ACS
object does it again.
To narrow in on just the import statement:
tinker-toys/live_map ∴ time echo 'import cenpy'|python
echo 'import cenpy' 0.00s user 0.00s system 36% cpu 0.003 total
python 1.83s user 0.77s system 2% cpu 1:42.25 total
Note that the import alone takes 1 min 42 sec (!). I've tried it both with and without an API key (including deleting SITEKEY.txt
). Also note that this was the second run of the same command, just in case there was some module compilation happening the first time.
I've also double-checked that it's not a network problem. Pings look normal (sample of output during import test above):
64 bytes from 172.217.12.14: icmp_seq=266 ttl=57 time=14.131 ms
64 bytes from 172.217.12.14: icmp_seq=267 ttl=57 time=12.664 ms
64 bytes from 172.217.12.14: icmp_seq=268 ttl=57 time=12.661 ms
64 bytes from 172.217.12.14: icmp_seq=269 ttl=57 time=16.833 ms
64 bytes from 172.217.12.14: icmp_seq=270 ttl=57 time=17.587 ms
64 bytes from 172.217.12.14: icmp_seq=271 ttl=57 time=18.663 ms
64 bytes from 172.217.12.14: icmp_seq=272 ttl=57 time=17.251 ms
64 bytes from 172.217.12.14: icmp_seq=273 ttl=57 time=12.557 ms
64 bytes from 172.217.12.14: icmp_seq=274 ttl=57 time=16.647 ms
I realize that this may be an issue with the census.gov servers, rather than cenpy. It may also be an issue with MacOS (see upgrade note below).
Potentially relevant info:
- OSX 13.5.1 (upgraded yesterday)
- python 3.11.4
- cenpy 1.0.1