-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup dedup performance #1100
Backup dedup performance #1100
Conversation
zatteo
commented
Jan 4, 2024
•
edited
Loading
edited
- improve backup dedup performance (10x)
- improve backup dedup readability
3f02f88
to
9b19981
Compare
…rison function It will improve speed A LOT by : - avoiding instanciating dates for nothing - avoiding getting flag for nothing
Since we compare date with full year, month, day, minutes and secondes, we do not need anymore to set milliseconds to 0. So we can remove this useless call.
18326d5
to
b393251
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mention the fact that you want to avoid unnecessary new Date()
calls
Does this mean that date comparizon is heavy enough to be a thing we want to optimize?
If yes, is there any chance that using date-fns
would be more effective at comparing dates?
Interesting I will keep that in mind especially if it can fasten the comparison in itself. For the record, I tried to instanciate every date object before the loop to avoid |