Skip to content
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

Short-circuit common case of comparing a calendar or time zone to itself #1493

Merged
merged 2 commits into from
Apr 17, 2021

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Apr 16, 2021

See point 2 of #1425.

@ptomato ptomato requested review from Ms2ger and cjtenny April 16, 2021 21:37
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #1493 (edfb56e) into main (cde67eb) will increase coverage by 0.25%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1493      +/-   ##
==========================================
+ Coverage   95.30%   95.56%   +0.25%     
==========================================
  Files          19       19              
  Lines       11089    11083       -6     
  Branches     1733     1734       +1     
==========================================
+ Hits        10568    10591      +23     
+ Misses        517      486      -31     
- Partials        4        6       +2     
Flag Coverage Δ
test262 61.07% <0.00%> (+2.86%) ⬆️
tests 91.71% <66.66%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/ecmascript.mjs 95.08% <100.00%> (+0.46%) ⬆️
polyfill/lib/calendar.mjs 94.45% <0.00%> (+0.01%) ⬆️
polyfill/lib/plaindatetime.mjs 96.67% <0.00%> (+1.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cde67eb...edfb56e. Read the comment docs.

Copy link
Collaborator

@cjtenny cjtenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

polyfill/lib/ecmascript.mjs Show resolved Hide resolved
spec/calendar.html Show resolved Hide resolved
spec/calendar.html Show resolved Hide resolved
spec/timezone.html Show resolved Hide resolved
In CalendarEquals, TimeZoneEquals, and ConsolidateCalendars, remove the
observable toString() calls from the path where both calendars are the
same object.

See: #1425
@ptomato ptomato force-pushed the 1425-calendar-timezone-tostring-short-circuit branch from 8acf69b to edfb56e Compare April 17, 2021 00:54
@ptomato ptomato merged commit aca09ca into main Apr 17, 2021
@ptomato ptomato deleted the 1425-calendar-timezone-tostring-short-circuit branch April 17, 2021 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants