Skip to content

Commit cb1a159

Browse files
committed
Document GC characteristics of instant formatters
1 parent 412baee commit cb1a159

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/site/antora/modules/ROOT/pages/manual/json-template-layout.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,13 @@ unit = "unit" -> (
12911291
rounded = "rounded" -> boolean
12921292
----
12931293
1294+
[NOTE]
1295+
====
1296+
The resolvers based on the `epochConfig` expression are garbage-free.
1297+
1298+
The resolvers based on the `patternConfig` expression are low-garbage and generate temporary objects only once a minute.
1299+
====
1300+
12941301
.See examples
12951302
[%collapsible]
12961303
====

src/site/antora/modules/ROOT/pages/manual/pattern-layout.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,9 @@ Format modifiers to control such things as field width, padding, left, and right
16071607
16081608
|<<converter-date,%d +
16091609
%date>>
1610-
|Only the predefined date formats (`DEFAULT`, `ISO8601`, `UNIX`, `UNIX_MILLIS`, etc.) are garbage-free
1610+
|
1611+
The numeric formats (`UNIX` and `UNIX_MILLIS`) are garbage-free.
1612+
The remaining formats are low-garbage and only generate temporary objects once per minute.
16111613
16121614
|<<converter-encode,%enc\{pattern} +
16131615
%encode\{pattern}>>

0 commit comments

Comments
 (0)