Closed SebastianSpeitel closed 3 years ago
Thanks for these changes, much appreciated.
Don't create temporary duration instances if possible
In this instance, I'd prefer to keep the code the way it was. At the moment I am undertaking a fairly significant refactoring of the codebase (see this branch https://github.com/ColinEberhardt/assemblyscript-temporal/tree/refactor). It helps to keep the code simple (rather than performance optimised) during refactor.
Performance optimisation can be a step after that!
Now this PR only includes the constants.
Thanks @SebastianSpeitel
:tada: This PR is included in version 2.2.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Use preexisting methods and constants Don't create temporary duration instances if possible