| От | Scott Marlowe |
|---|---|
| Тема | Re: Regex performance issue |
| Дата | |
| Msg-id | 1165109498.25316.15.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: Regex performance issue ("Alexandru Coseru" <alexandru.coseru@totaltelecom.ro>) |
| Список | pgsql-performance |
On Sun, 2006-12-03 at 02:53 +0200, Alexandru Coseru wrote: > Hello.. > > Thanks for the tip , i think i have got the ideea.. > > I'm too tired too , and i will try it tommorow. > > > Anyway , anybody has a clue why this regex is that CPU intensive ? I did > not saw the light on my drives blinking , and also vmstat doesn't yeld any > blocks in or out... > And how can it be optimized ? I think it's just that you're running the regex across 5400 or so elements. at 850 or so milliseconds, that comes out to 150uS for each comparison. I'd say it's just the number of comparisons that have to be made that's killing you here.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера