| От | Harald Fuchs |
|---|---|
| Тема | Re: plperl doesn't release memory |
| Дата | |
| Msg-id | puhdiscf9b.fsf@srv.protecting.net обсуждение исходный текст |
| Ответ на | Re: plperl doesn't release memory ("GIROIRE Nicolas (COFRAMI)" <nicolas.giroire@airbus.com>) |
| Список | pgsql-general |
In article <20050331082524.GC30965@svana.org>, Martijn van Oosterhout <kleptog@svana.org> writes: > Perl uses reference counting, so as long as a string is visibile > anywhere (remember closures), it stays around and disappears as soon as > it's unreferenced. > If you have large strings or arrays you don't need, maybe you need to > explicitly undef them. Using shift and pop on arrays doesn't copy the > element for example. Make sure you're using my on all your variables so > they are cleared on exiting a function. > Also, this doesn't work on circular references, so if you build > structures like that you'll need to explicitly break the chain. ... or use WeakRef.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера