summaryrefslogtreecommitdiff
path: root/tex/context/base/util-str.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/util-str.lua')
-rw-r--r--tex/context/base/util-str.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/tex/context/base/util-str.lua b/tex/context/base/util-str.lua
index 25882d9e3..965eff46d 100644
--- a/tex/context/base/util-str.lua
+++ b/tex/context/base/util-str.lua
@@ -153,19 +153,19 @@ function strings.nice(str)
return str
end
--- Work in progress. Interesting is that compared to the built-in this
--- is faster in luatex than in luajittex where we have a comparable speed.
--- It only makes sense to use the formatter when a (somewhat) complex format
--- is used a lot. Each formatter is a function so there is some overhead
--- and not all formatted output is worth that overhead. Keep in mind that
--- there is an extra function call involved. In principle we end up with a
--- string concatination so one could inline such a sequence but often at the
--- cost of less readabinity. So, it's a sort of (visual) compromise. Of course
--- there is the benefit of more variants. (Concerning the speed: a simple format
--- like %05fpt is better off with format than with a formatter, but as soon as
--- you put something in front formatters become faster. Passing the pt as extra
--- argument makes formatters behave better. Of course this is rather
--- implementation dependent.)
+-- Work in progress. Interesting is that compared to the built-in this is faster in
+-- luatex than in luajittex where we have a comparable speed. It only makes sense
+-- to use the formatter when a (somewhat) complex format is used a lot. Each formatter
+-- is a function so there is some overhead and not all formatted output is worth that
+-- overhead. Keep in mind that there is an extra function call involved. In principle
+-- we end up with a string concatination so one could inline such a sequence but often
+-- at the cost of less readabinity. So, it's a sort of (visual) compromise. Of course
+-- there is the benefit of more variants. (Concerning the speed: a simple format like
+-- %05fpt is better off with format than with a formatter, but as soon as you put
+-- something in front formatters become faster. Passing the pt as extra argument makes
+-- formatters behave better. Of course this is rather implementation dependent. Also,
+-- when a specific format is only used a few times the overhead in creating it is not
+-- compensated by speed.)
--
-- More info can be found in cld-mkiv.pdf so here I stick to a simple list.
--