NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/60995: libedit: allocate display rows on demand
The following reply was made to PR lib/60995; it has been noted by GNATS.
From: Hua Zhong <hzhong%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/60995: libedit: allocate display rows on demand
Date: Thu, 12 Nov 2026 14:02:24 -0800
--00000000000023b86f06601b7852
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
If you think this is a good idea, I can spend more time working out a
solution, which will undoubtedly add more complexity. Honestly the
application is already cooked if they cannot allocate more memory at this
point, and often it's easier to restart it then to keep running. But if
that's what it takes to optimize the memory usage I can do it. The memory
savings can be huge.
On Thu, Nov 12, 2026 at 1:55=E2=80=AFPM Christos Zoulas via gnats <
gnats-admin%netbsd.org@localhost> wrote:
> The following reply was made to PR lib/60995; it has been noted by GNATS.
>
> From: Christos Zoulas <christos%zoulas.com@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: lib-bug-people%netbsd.org@localhost,
> gnats-admin%netbsd.org@localhost,
> netbsd-bugs%netbsd.org@localhost
> Subject: Re: lib/60995: libedit: allocate display rows on demand
> Date: Thu, 12 Nov 2026 16:49:38 -0500
>
> Yes, but the error handling leaves a lot to be desired. You abort() and =
=3D
> exit() which makes applications fragile.
>
> christos=3D
>
>
--00000000000023b86f06601b7852
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">If you think this is a good idea, I can spend more time wo=
rking out a solution, which will undoubtedly add more complexity. Honestly =
the application is already cooked if they cannot allocate more memory at th=
is point, and often it's easier to restart it then to keep running. But=
if that's what it takes to optimize the memory usage I can do it. The =
memory savings can be huge.</div><br><div class=3D"gmail_quote gmail_quote_=
container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Nov 12, 2026 at 1:=
55=E2=80=AFPM Christos Zoulas via gnats <<a href=3D"mailto:gnats-admin@n=
etbsd.org">gnats-admin%netbsd.org@localhost</a>> wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">The following reply was made to PR lib/609=
95; it has been noted by GNATS.<br>
<br>
From: Christos Zoulas <<a href=3D"mailto:christos%zoulas.com@localhost" target=3D"=
_blank">christos%zoulas.com@localhost</a>><br>
To: <a href=3D"mailto:gnats-bugs%netbsd.org@localhost" target=3D"_blank">gnats-bugs@n=
etbsd.org</a><br>
Cc: <a href=3D"mailto:lib-bug-people%netbsd.org@localhost" target=3D"_blank">lib-bug-=
people%netbsd.org@localhost</a>,<br>
=C2=A0<a href=3D"mailto:gnats-admin%netbsd.org@localhost" target=3D"_blank">gnats-adm=
in%netbsd.org@localhost</a>,<br>
=C2=A0<a href=3D"mailto:netbsd-bugs%netbsd.org@localhost" target=3D"_blank">netbsd-bu=
gs%netbsd.org@localhost</a><br>
Subject: Re: lib/60995: libedit: allocate display rows on demand<br>
Date: Thu, 12 Nov 2026 16:49:38 -0500<br>
<br>
=C2=A0Yes, but the error handling leaves a lot to be desired. You abort() a=
nd =3D<br>
=C2=A0exit() which makes applications fragile.<br>
<br>
=C2=A0christos=3D<br>
<br>
</blockquote></div>
--00000000000023b86f06601b7852--
Home |
Main Index |
Thread Index |
Old Index