The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



"Доступен язык программирования Perl 5.38.0 с поддержкой классов"
Версия для распечатки Пред. тема | След. тема
Форум Разговоры, обсуждение новостей
Исходное сообщение [ Отслеживать ]
Отдельный RSS теперь доступен для каждого обсуждения в форуме и каждого минипортала.
. "Доступен язык программирования Perl 5.38.0 с поддержкой клас..." +/
Сообщение от n00by (ok), 03-Июл-23, 16:18 
*{ ... } может уменьшить стабильность, в смысле, что количество вызовов движка регекспов в будущем изменится. *)

The use of (?{ ... }) and (??{ ... }) in a pattern disables various optimisations globally in that pattern. This may or may not be desired by the programmer. This release adds the (*{ ... }) equivalent. The only difference is that it does not and will never disable any optimisations in the regex engine.

*) This may make it more unstable in the sense that it may be called more or less times in the future, however the number of times it executes will truly match how the regex engine functions. For example, certain types of optimisation are disabled when (?{ ... }) is included in a pattern, so that patterns which are O(N) in normal use become O(N*N) with a (?{ ... }) pattern in them. Switching to (*{ ... }) means the pattern will stay O(N).

Ответить | Правка | Наверх | Cообщить модератору

Оглавление
Доступен язык программирования Perl 5.38.0 с поддержкой классов, opennews, 03-Июл-23, 13:42  [смотреть все]
Форумы | Темы | Пред. тема | След. тема



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру