electiondata icon indicating copy to clipboard operation
electiondata copied to clipboard

Speed up code

Open sfsinger19103 opened this issue 5 years ago • 0 comments

See https://towardsdatascience.com/6-bad-manners-makes-your-python-program-slower-15b6fce62927

  • [ ] Replace 'import ' with 'from import ' where reasonable. Importing a whole module when you're using only part of it can slow things down.
  • [ ] Avoid dot-dot chaining
  • [ ] Use for loop, not while loop, wherever possible

sfsinger19103 avatar Sep 09 '21 23:09 sfsinger19103