mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
# msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../../Creational/Pool/README.rst:2 msgid "`Pool`__" 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 "" #: ../../Creational/Pool/README.rst:32 msgid "Code" msgstr "" #: ../../Creational/Pool/README.rst:34 msgid "You can also find these code on `GitHub`_" msgstr "" #: ../../Creational/Pool/README.rst:36 msgid "Pool.php" msgstr "" #: ../../Creational/Pool/README.rst:42 msgid "Processor.php" msgstr "" #: ../../Creational/Pool/README.rst:48 msgid "Worker.php" msgstr "" #: ../../Creational/Pool/README.rst:55 msgid "Test" msgstr "" #: ../../Creational/Pool/README.rst:57 msgid "Tests/PoolTest.php" msgstr "" #: ../../Creational/Pool/README.rst:63 msgid "Tests/TestWorker.php" msgstr ""