25.11.2015, 04:16
Speed matters when there is bulk of subjects.
If you use DINI instead of YINI for Loading objects(say) for a player, YINI is faster so the loading is completed before DINI does it in lots of seconds. What would you want, wait for long to let DINI complete or YINI?
Similarly with zcmd and strcmp.
Also, optimizations and smart methods are part of good coding practice or quality code. DINI is not smart because it opens a file each time to read a single field and then closes it, where you can do that a single time by opening it once and then close after you have fetched or written your fields.
If you use DINI instead of YINI for Loading objects(say) for a player, YINI is faster so the loading is completed before DINI does it in lots of seconds. What would you want, wait for long to let DINI complete or YINI?
Similarly with zcmd and strcmp.
Also, optimizations and smart methods are part of good coding practice or quality code. DINI is not smart because it opens a file each time to read a single field and then closes it, where you can do that a single time by opening it once and then close after you have fetched or written your fields.