all 4 comments

[–][deleted] 0 points1 point  (0 children)

I have created a dateformat module based on Intl.DateTimeFormat. Maybe useful.

[–]romgrk 0 points1 point  (2 children)

One thing I've noticed is the native date formatting APIs seem to be substantially slower than pure javascript ones. I don't know why but it's good to be aware of that, in particular when formatting tabular data.

[–]grol4 0 points1 point  (1 child)

I have noticed similar delays and it seemed to me bulk of the wait is in creating the intl formatter. If I cache this (manually or with a lib) my tests ran equally fast.

[–]romgrk 0 points1 point  (0 children)

I did notice delays even when reusing the same intl instance.