From 9da96e570a835d6a0427c9182585af307d393f45 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 8 Sep 2014 07:17:41 +0300 Subject: Minor doc edit. --- doc/gawk.texi | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'doc/gawk.texi') diff --git a/doc/gawk.texi b/doc/gawk.texi index 223e90a1..177d8c89 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -21131,15 +21131,7 @@ function readfile(file, tmp, contents) This function reads from @code{file} one record at a time, building up the full contents of the file in the local variable @code{contents}. -It works, but is not necessarily -@c 8/2014. Thanks to BWK for pointing this out: -efficient. -@ignore -@footnote{Execution time grows quadratically in the size of -the input; for each record, @command{awk} has to allocate a bigger -internal buffer for @code{contents}, copy the old contents into it, -and then append the contents of the new record.} -@end ignore +It works, but is not necessarily efficient. The following function, based on a suggestion by Denis Shirokov, reads the entire contents of the named file in one shot: -- cgit v1.2.3