aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-08 07:18:01 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-08 07:18:01 +0300
commitca9f23d6c33c4b5cb3786d480948a42988ca99ac (patch)
tree398d7c34be44a97a5def2670af893eb74d955d27 /doc/gawktexi.in
parentc037ac7669150fbc955313fa63928fe00d3c825d (diff)
parent9da96e570a835d6a0427c9182585af307d393f45 (diff)
downloadegawk-ca9f23d6c33c4b5cb3786d480948a42988ca99ac.tar.gz
egawk-ca9f23d6c33c4b5cb3786d480948a42988ca99ac.tar.bz2
egawk-ca9f23d6c33c4b5cb3786d480948a42988ca99ac.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in10
1 files changed, 1 insertions, 9 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index d04cc8b3..679073bf 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -20277,15 +20277,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: