Re: Win32: Minimising desktop heap usage

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Win32: Minimising desktop heap usage
Дата
Msg-id 877ildq11c.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Win32: Minimising desktop heap usage  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Win32: Minimising desktop heap usage  (Dave Page <dpage@postgresql.org>)
Список pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

>> !     /*
>> !      * Note: We use getenv here because the more modern SHGetSpecialFolderPath()
>> !      * will force us to link with shell32.lib which eats valuable desktop heap.
>> !      */
>> !     tmppath = getenv("APPDATA");
>
> Hmm, is there any functional downside to this?  I suppose
> SHGetSpecialFolderPath does some things that getenv does not...

The functional difference appears to be that the environment variable is set
on startup (or login?) and doesn't necessarily have the most up to date value
if it's been changed. But it's not something you're likely to change and you
can always adjust the environment variable manually to fix the problem.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Win32: Minimising desktop heap usage
Следующее
От: Dave Page
Дата:
Сообщение: Re: Win32: Minimising desktop heap usage