PythonAI icon indicating copy to clipboard operation
PythonAI copied to clipboard

Make code faster

Open Akul2010 opened this issue 2 years ago • 0 comments

Changes I made:

  1. Reduce file I/O: Read the skills and plugins JSON files only once and store the data in memory instead of reading them multiple times.
  2. Use break statement in the loop to exit early once a command is handled.
  3. Avoid unnecessary checks in the while loop

Akul2010 avatar Feb 04 '23 20:02 Akul2010