Re: PGAdmin4 2.1 OSX bloat

Поиск
Список
Период
Сортировка
От Darren Duncan
Тема Re: PGAdmin4 2.1 OSX bloat
Дата
Msg-id 8923ff14-ab80-a0ae-727f-9b9379e2e74c@darrenduncan.net
обсуждение исходный текст
Ответ на Re: PGAdmin4 2.1 OSX bloat  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
Список pgadmin-support
On 2018-02-22 2:10 AM, Khushboo Vashi wrote:
> On Thu, Feb 22, 2018 at 11:01 AM, Darren Duncan wrote:
> 
>     As for where all that bloat is going, I took a minute of digging and found
>     something interesting.
> 
>     /Volumes/pgAdmin\ 4/pgAdmin\
>     4.app/Contents/Resources/web/pgadmin/static/js/generated/.cache/hard-source
> 
>     This one, single, "invisible" .cache directory in the application bundle is
>     about 300MB by itself, or half of the total .app size.
> 
>     I suspect this is the most egregious thing, assuming that folder only is
>     either needed at development or packaging time or can be generated by
>     PgAdmin at runtime.
> 
> The pgAdmin 4 uses webpack hardSourceWebpackPlugin which caches the optimised 
> javascripts in the .cache directory, and those will be used from the .cache 
> directory during rebundling of webpack module, so that only the changed files 
> will be processed on the next build in the development environment, and rest of 
> the files are being picked up from the cached directory which makes the 
> rebundling fast. But this is only helpful in the development environment, so the 
> patch to fix this already sent to the pgadmin-hackers (Patch: 
> https://www.postgresql.org/message-id/CAFOhELfmrfwqBf9dpYkJJOoKFdLi%2BictCEeBthdxBDNp_mqP-g%40mail.gmail.com).

Thank you for that.

So I ultimately hope this will result in new DMGs etc being published in the 
downloads directory that apply this packaging change for all affected pgAdmin 
versions, and not just the next upcoming one, since the older versions are still 
made available.

-- Darren Duncan


В списке pgadmin-support по дате отправления:

Предыдущее
От: Khushboo Vashi
Дата:
Сообщение: Re: PGAdmin4 2.1 OSX Query Tool - messages delayed by one execution
Следующее
От: Dave Page
Дата:
Сообщение: Re: PGAdmin4 2.1 OSX bloat