| От | Michael Paesold |
|---|---|
| Тема | Re: string_to_array eats too much memory? |
| Дата | |
| Msg-id | 4552E639.9010606@gmx.at обсуждение исходный текст |
| Ответ на | Re: string_to_array eats too much memory? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane writes: > Tatsuo Ishii <ishii@sraoss.co.jp> writes: >> string_to_array() consumes too much memory. For example, to make >> ~70k array elements, string_to_array seems to eat several Gig bytes >> of memory. > > I'd argue that the problem comes from enlarging the work arrays only > 64 elements at a time in accumArrayResult(). Most of the rest of the > code deals with resizing arrays using a "double it each time it has > to grow" approach, I wonder why this is different? Without reading the code, I guess that simply means O(n^2) runtime. This should be fixed, then, right? Best Regards, Michael Paesold
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера