Bug#1024532: gjs allocates 237 GB of RAM during build (!)
Santiago Vila
sanvila at debian.org
Tue Nov 22 19:05:24 GMT 2022
El 22/11/22 a las 18:44, Marco Trevisan escribió:
> On nov 21 2022, at 1:51 pm, Santiago Vila <sanvila at debian.org> wrote:
>> I am reporting this as an anomaly (a very big anomaly indeed).
>
> With the gjs upstream hat, I have sadly to say that this is probably
> something expected: gjs eavily uses complex templates to generate code
> all over the places, and such generated code is all kept in memory by
> g++ (and any other c++ compiler at the date I think), thus I don't think
> it's an anomaly. I suppose compilers could do some local caching but I'm
> not aware of a way of doing that.
By "anomaly" I meant "anomaly compared with other Debian packages". It
would very strange if this was the only package in Debian making such
heavy use of templates.
I'm not sure, but I believe the memory thing happens at the end of the
build process, probably during the dh_auto_test stage of the package
build, not during the build itself. So the fact that gjs build makes
heavy use of complex templates would not be a good explanation for the
memory usage.
I think we should do tests to see what happens.
Thanks.
More information about the pkg-gnome-maintainers
mailing list