@@ -20,11 +20,11 @@ msgstr ""
20
20
21
21
#: ../../Creational/Pool/README.rst:2
22
22
msgid "`Pool`__"
23
- msgstr ""
23
+ msgstr "`Object Pool パターン`__ "
24
24
25
25
#: ../../Creational/Pool/README.rst:5
26
26
msgid "Purpose"
27
- msgstr ""
27
+ msgstr "目的 "
28
28
29
29
#: ../../Creational/Pool/README.rst:7
30
30
msgid ""
@@ -35,6 +35,10 @@ msgid ""
35
35
"object. When the client has finished, it returns the object, which is a "
36
36
"specific type of factory object, to the pool rather than destroying it."
37
37
msgstr ""
38
+ "**Object Pool パターン** は、オブジェクトを必要な場合に割当て利用後に破棄するのではなく、"
39
+ "初期化済みのいつでも利用可能なオブジェクトを\" プール\" に保持し、それらを使用する生成に関するデザインパターンです。"
40
+ "このプールのClientクラスは、プールにオブジェクトを要求し、プールから返却されたオブジェクトを使用します。"
41
+ "クライアントはオブジェクトの使用終了後、オブジェクト(特定の型のFacboryオブジェクト)を破棄するでのはなくプールに返却します。"
38
42
39
43
#: ../../Creational/Pool/README.rst:14
40
44
msgid ""
@@ -45,6 +49,11 @@ msgid ""
45
49
"when creation of the new objects (especially over network) may take "
46
50
"variable time."
47
51
msgstr ""
52
+ "オブジェクトプーリングは、クラスインスタンスの初期化のコストが高く、"
53
+ "クラスをインスタンス化する割合が高く、一度に使用されるインスタンスの数が少ない状況で、"
54
+ "パフォーマンスを大幅に向上させることができます。"
55
+ "また、新しいオブジェクトの生成に時間がかかる可能性がある場合(特にネットワーク経由での生成の場合)に、プールされたオブジェクトを取得することで"
56
+ "予測可能な時間でオブジェクトを得ることができるようになります。"
48
57
49
58
#: ../../Creational/Pool/README.rst:21
50
59
msgid ""
@@ -54,18 +63,22 @@ msgid ""
54
63
"situations, simple object pooling (that hold no external resources, but "
55
64
"only occupy memory) may not be efficient and could decrease performance."
56
65
msgstr ""
66
+ "しかし、これらのメリットは、データベース接続、ソケット接続、スレッド、フォントやビットマップのような大きなグラフィックオブジェクトなど、"
67
+ "時間に関してコストがかかるオブジェクトのほとんどに当てはまります。"
68
+ "特定の状況下では、単純なオブジェクトプーリング(外部リソースを保持せず、メモリを占有するだけ)"
69
+ "は効率的でなく、パフォーマンスが低下する可能性があります。"
57
70
58
71
#: ../../Creational/Pool/README.rst:28
59
72
msgid "UML Diagram"
60
- msgstr ""
73
+ msgstr "クラス図 "
61
74
62
75
#: ../../Creational/Pool/README.rst:35
63
76
msgid "Code"
64
- msgstr ""
77
+ msgstr "サンプルコード "
65
78
66
79
#: ../../Creational/Pool/README.rst:37
67
80
msgid "You can also find this code on `GitHub`_"
68
- msgstr ""
81
+ msgstr "サンプルコードは `GitHub`_ でも確認することができます。 "
69
82
70
83
#: ../../Creational/Pool/README.rst:39
71
84
msgid "WorkerPool.php"
@@ -77,7 +90,7 @@ msgstr ""
77
90
78
91
#: ../../Creational/Pool/README.rst:52
79
92
msgid "Test"
80
- msgstr ""
93
+ msgstr "テスト "
81
94
82
95
#: ../../Creational/Pool/README.rst:54
83
96
msgid "Tests/PoolTest.php"