From 3b57e37e4821ddce4756428956b7e9f4969efa4c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 10 Nov 2023 12:35:48 -0300 Subject: Fixed buffers save long strings as external. --- manual/manual.of | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'manual') diff --git a/manual/manual.of b/manual/manual.of index 9d6a7fd9..9ca28aee 100644 --- a/manual/manual.of +++ b/manual/manual.of @@ -3651,8 +3651,10 @@ Moreover, it may have a @Char{B} instead of a @Char{b}, meaning a @emphx{fixed buffer} with the binary dump. A fixed buffer means that the address returned by the reader function -should contain the chunk until everything created by the chunk has -been collected. +will contain the chunk until everything created by the chunk has +been collected; +therefore, Lua can avoid copying to internal structures +some parts of the chunk. (In general, a fixed buffer would keep the chunk as its contents until the end of the program, for instance with the chunk in ROM.) -- cgit v1.2.3-55-g6feb