[translate] Pool

This commit is contained in:
tanden
2020-05-04 16:46:30 +09:00
parent 9b9a04c8ad
commit 35ba7060cc

View File

@@ -20,11 +20,11 @@ msgstr ""
#: ../../Creational/Pool/README.rst:2
msgid "`Pool`__"
msgstr ""
msgstr "`Object Pool パターン`__"
#: ../../Creational/Pool/README.rst:5
msgid "Purpose"
msgstr ""
msgstr "目的"
#: ../../Creational/Pool/README.rst:7
msgid ""
@@ -35,6 +35,10 @@ msgid ""
"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 ""
"**Object Pool パターン** は、オブジェクトを必要な場合に割当て利用後に破棄するのではなく、"
"初期化済みのいつでも利用可能なオブジェクトを\"プール\"に保持し、それらを使用する生成に関するデザインパターンです。"
"このプールのClientクラスは、プールにオブジェクトを要求し、プールから返却されたオブジェクトを使用します。"
"クライアントはオブジェクトの使用終了後、オブジェクト特定の型のFacboryオブジェクトを破棄するでのはなくプールに返却します。"
#: ../../Creational/Pool/README.rst:14
msgid ""
@@ -45,6 +49,11 @@ msgid ""
"when creation of the new objects (especially over network) may take "
"variable time."
msgstr ""
"オブジェクトプーリングは、クラスインスタンスの初期化のコストが高く、"
"クラスをインスタンス化する割合が高く、一度に使用されるインスタンスの数が少ない状況で、"
"パフォーマンスを大幅に向上させることができます。"
"また、新しいオブジェクトの生成に時間がかかる可能性がある場合(特にネットワーク経由での生成の場合)に、プールされたオブジェクトを取得することで"
"予測可能な時間でオブジェクトを得ることができるようになります。"
#: ../../Creational/Pool/README.rst:21
msgid ""
@@ -54,18 +63,22 @@ msgid ""
"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:28
msgid "UML Diagram"
msgstr ""
msgstr "クラス図"
#: ../../Creational/Pool/README.rst:35
msgid "Code"
msgstr ""
msgstr "サンプルコード"
#: ../../Creational/Pool/README.rst:37
msgid "You can also find this code on `GitHub`_"
msgstr ""
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/Pool/README.rst:39
msgid "WorkerPool.php"
@@ -77,7 +90,7 @@ msgstr ""
#: ../../Creational/Pool/README.rst:52
msgid "Test"
msgstr ""
msgstr "テスト"
#: ../../Creational/Pool/README.rst:54
msgid "Tests/PoolTest.php"