Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up code #722

Open
3 tasks
sfsinger19103 opened this issue Sep 9, 2021 · 0 comments
Open
3 tasks

Speed up code #722

sfsinger19103 opened this issue Sep 9, 2021 · 0 comments
Labels

Comments

@sfsinger19103
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant