Re: [HACKERS] libpq+MB/putenv(), getenv() clean up
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] libpq+MB/putenv(), getenv() clean up |
Дата | |
Msg-id | 200001130336.WAA29364@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] libpq+MB/putenv(), getenv() clean up (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
> Tatsuo Ishii <t-ishii@sra.co.jp> writes: > > I have a plan to clean up the usage of putenv(), getenv() in libpq+MB > > configuration. This needs some interface changes with libpq in the > > frontend side. I'm not sure this is visible to end users or not, and I > > would like to hear from hackes. > > I think it is a very good idea to remove getenv() from PQmblen(). > getenv() is rather slow, at least on the machines I use, and having > to do it for each character processed is a huge performance hit. Yikes, we are calling it for every character. I think it munges through the entire process environment space looking for a value. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: