Re: Fix quadratic performance of regexp match/split functions

Поиск
Список
Период
Сортировка
От Kaiting Chen
Тема Re: Fix quadratic performance of regexp match/split functions
Дата
Msg-id 153439086187.1388.4636958239048294213.pgcf@coridan.postgresql.org
обсуждение исходный текст
Ответ на Re: Fix quadratic performance of regexp match/split functions  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: Fix quadratic performance of regexp match/split functions  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
Applied cleanly for me. Here are my performance test results:

  count
---------
 3000000
(1 row)

Time: 3167.836 ms (00:03.168)
  count
----------
 10100000
(1 row)

Time: 6074.369 ms (00:06.074)
 count
-------
 10001
(1 row)

Time: 8.159 ms

The performance improves substantially in case 2 as advertised:

  count
---------
 3000000
(1 row)

Time: 3387.612 ms (00:03.388)
  count
----------
 10100000
(1 row)

Time: 43794.224 ms (00:43.794)
 count
-------
 10001
(1 row)

Time: 1436.587 ms (00:01.437)

I'll do some more testing to determine how this behaves in the presence of multibyte characters in UTF-8.

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

Предыдущее
От: Etsuro Fujita
Дата:
Сообщение: Re: Expression errors with "FOR UPDATE" and postgres_fdw with partitionwise join enabled.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Update comment in errcodes.txt correctly