3 ms·
(+20ns x # calls made) can be significant if you’re dealing with billions of executions though. If nothing else a search/replace for “dict()” to “{}” could yie
by sjwhevvvvvsj 3y ago
(+20ns x # calls made) can be significant if you’re dealing with billions of executions though.
If nothing else a search/replace for “dict()” to “{}” could yield an aggregate performance bump with basically zero refactoring cost.
Also re Python in general: love it or hate it, it “won” as the language of ML. If you want to use ML libraries you’ll be in python.
- ayhanfuat 3y agoIf you are building billions of dicts, the bottleneck will not be how you initialize them as empty dicts for sure.
- sjwhevvvvvsj 3y agoDistributed systems can get very big.