mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-03 03:32:49 +02:00
# msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-02-04 12:00+0200\n" "PO-Revision-Date: 2023-02-04 12:00+0200\n" "Last-Translator: Petro Ostapuk <petroostapuk@gmail.com>\n" "Language-Team: \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.1.1\n" #: ../../Creational/Pool/README.rst:2 msgid "`Pool`__" msgstr "" "`Пул об'єктів <https://uk.wikipedia.org/wiki/Пул_об'єктів_(шаблон_проєктування)>`_ (`Pool`__)" #: ../../Creational/Pool/README.rst:4 msgid "Purpose" msgstr "Призначення" #: ../../Creational/Pool/README.rst:4 msgid "" "The **object pool pattern** is a software creational design pattern that " "uses a set of initialized objects kept ready to use – a \"pool\" – rather " "than allocating and destroying them on demand. A client of the pool will " "request an object from the pool and perform operations on the returned " "object. When the client has finished, it returns the object, which is a " "specific type of factory object, to the pool rather than destroying it." msgstr "" "Патерн, що породжує, який надає набір заздалегідь ініціалізованих " "об'єктів, готових до використання («пул»), що не вимагає щоразу " "створювати та знищувати їх." #: ../../Creational/Pool/README.rst:11 msgid "" "Object pooling can offer a significant performance boost in situations where" " the cost of initializing a class instance is high, the rate of " "instantiation of a class is high, and the number of instances in use at any " "one time is low. The pooled object is obtained in predictable time when " "creation of the new objects (especially over network) may take variable " "time." msgstr "" "Зберігання об'єктів у пулі може помітно підвищити продуктивність у " "ситуаціях, коли вартість та швидкість ініціалізації екземпляра класу високі, " "а кількість екземплярів, що одночасно використовуються, в будь-який момент часу " "є низьким. Час отримання об'єкта з пулу легко прогнозується, " "як створення нового об'єкта (особливо з мережевим оверхедом) може " "займати невизначений час." #: ../../Creational/Pool/README.rst:18 msgid "" "However these benefits are mostly true for objects that are expensive with " "respect to time, such as database connections, socket connections, threads " "and large graphic objects like fonts or bitmaps. In certain situations, " "simple object pooling (that hold no external resources, but only occupy " "memory) may not be efficient and could decrease performance." msgstr "" "Однак ці переваги в основному відносяться до об'єктів, які спочатку " "є дорогими за часом створення. Наприклад, з'єднання з базою " "даних, з'єднання сокетів, потоків або ініціалізація великих графічних " "об'єктів, таких як шрифти або растрові зображення. У деяких " "ситуаціях, використання простого пулу об'єктів (які не залежать від " "Зовнішніх ресурсів, а тільки займають пам'ять) може виявитися неефективним і " "приведе до зниження продуктивності." #: ../../Creational/Pool/README.rst:25 msgid "UML Diagram" msgstr "Діаграма UML" #: ../../Creational/Pool/README.rst:32 msgid "Code" msgstr "Код" #: ../../Creational/Pool/README.rst:34 msgid "You can also find this code on `GitHub`_" msgstr "Ви можете знайти цей код на `GitHub`_" #: ../../Creational/Pool/README.rst:55 msgid "Test" msgstr "Тест"