new92 / InstaTools

🧰 A collection of tools used for automating tasks on Instagram 📱| Written in Python 🐍 | Don't forget to ⭐ the repo !
https://github.com/new92/InstaTools
MIT License
115 stars 23 forks source link

optimized sub-optimal code. #20

Closed ghost closed 10 months ago

ghost commented 10 months ago

Made the following changes:

-> replaced un-changed lists by tuples for better runtime & memory savings. -> removed str conversion ahead of input as it always returns a string. -> removed unnecessary 'return None' statements. -> optimized for loops. -> removed multiple unnecessary print statements and converted into a single one. -> updated guard clause in return statement in fetch function. -> other minor optimizations.