Skip to content

Commit

Permalink
Merge pull request #4 from Tester798/patch-1
Browse files Browse the repository at this point in the history
Fix typos in README.md
  • Loading branch information
CaptainCodeman authored Jun 1, 2024
2 parents 7e32c32 + 13af77f commit bf90869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Based partly on [Fast and Light Relative Time Strings in JS by Steve Sewell](htt
- ✅ Component version enables SSR
- ✅ Live updates by default (can be disabled)
- ✅ Uses single interval timer for updating all components
-Lightwight and GC friendly (single `Intl.RelativeTimeFormat` used per locale)
-Lightweight and GC friendly (single `Intl.RelativeTimeFormat` used per locale)
- ✅ Instance updates scheduled for new visible change
- ✅ Instance updates synchronized so all happen together

Expand Down Expand Up @@ -63,4 +63,4 @@ const locale = 'en' // see note about on how to avoid hard coding this for SSR

## Performance

The package is designed to be as lightweight as possible. A single timer is used (which only runs when there are any instances requiring live updates), a single `Intl.RelativeTimeFormat` instance per locale is created and re-used, and instances are only re-evaluated when their displayed value will next change. So even with thousands of instances shouldn't cause parformance issues.
The package is designed to be as lightweight as possible. A single timer is used (which only runs when there are any instances requiring live updates), a single `Intl.RelativeTimeFormat` instance per locale is created and re-used, and instances are only re-evaluated when their displayed value will next change. So even with thousands of instances shouldn't cause performance issues.

0 comments on commit bf90869

Please sign in to comment.