Skip to content

Speed up code #722

Description

@sfsinger19103

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions