Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I dont know python but wouldnt it be quicker if you check if there have been changes to the file before writing it?
-
@abkcode yes. At the moment you always save even if the content hasnt changed. Since read write operations are relatively heavy an isChanged check could potentionally be a lot quicker.
Related Rants
Worked on open-source for the first time. Learned python and wrote script to upgrade fontawesome from 4 to 5 by replacing the icon names.
https://github.com/abkcode/...
more open-source projects coming soon.
rant
fontawesome
open-source
python