zsh-workers
 help / color / mirror / code / Atom feed
* "Overlarge EPROG nref" with functions -c
@ 2021-09-22  7:02 Mikael Magnusson
  2021-09-22 14:26 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2021-09-22  7:02 UTC (permalink / raw)
  To: zsh-workers

Someone in IRC was defining thousands of functions with brace
expansions, and I thought perhaps they could save some memory by using
functions -c instead, and came across the following:

% orig() {}
% for i in {1..2000}; do functions -c orig copy_$i; done
% for i in {1..2000}; do functions -c orig copy_$i; done
 parse.c:2816: Overlarge EPROG nref
[message repeats many times]

I'm assuming this is indicative of something bad, but I didn't look
into it, hoping that perhaps someone else knows more.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-22 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22  7:02 "Overlarge EPROG nref" with functions -c Mikael Magnusson
2021-09-22 14:26 ` Bart Schaefer
2021-09-22 15:01   ` Peter Stephenson

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).