keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
349 stars 136 forks source link

Minor optimizations and eliminate loops #305

Closed maldil closed 1 year ago

maldil commented 2 years ago

Hi Maintainers of this repo,

Thank you very much for your excellent work in program-y,

I am new to this repository. I am a researcher studying the best practices of evolving data science codes. According to our findings, migration of loop-based computations is a common evolution practice among the developers since it increases performance and code quality. I saw several areas in this repository where it could make better use of functions from Python and element inefficient loops. This PR elements those loops.

Thank you to the maintainers for all of your hard work. This PR is a minor contribution. However, I am hoping that it will enhance code quality and, hopefully, performance.