PythonAI
PythonAI copied to clipboard
Make code faster
Changes I made:
- 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.
- Use
break
statement in the loop to exit early once a command is handled. - Avoid unnecessary checks in the
while
loop