aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Clients
diff options
context:
space:
mode:
authorDiva Canto2009-10-10 06:35:31 -0700
committerDiva Canto2009-10-10 06:35:31 -0700
commit8030ed89b00cfba6215143fe5e630fa12e05639e (patch)
treead51942004fc3b89b50a724fc862a77cef424c76 /OpenSim/Framework/Communications/Clients
parentSlight variation on the locking scheme: now locking always, except the ForEac... (diff)
downloadopensim-SC_OLD-8030ed89b00cfba6215143fe5e630fa12e05639e.zip
opensim-SC_OLD-8030ed89b00cfba6215143fe5e630fa12e05639e.tar.gz
opensim-SC_OLD-8030ed89b00cfba6215143fe5e630fa12e05639e.tar.bz2
opensim-SC_OLD-8030ed89b00cfba6215143fe5e630fa12e05639e.tar.xz
Use Util.UTF8 instead of creating a new heap object every time.
Diffstat (limited to 'OpenSim/Framework/Communications/Clients')
-rw-r--r--OpenSim/Framework/Communications/Clients/RegionClient.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/Clients/RegionClient.cs b/OpenSim/Framework/Communications/Clients/RegionClient.cs
index 220a9b6..297b046 100644
--- a/OpenSim/Framework/Communications/Clients/RegionClient.cs
+++ b/OpenSim/Framework/Communications/Clients/RegionClient.cs
@@ -90,7 +90,7 @@ namespace OpenSim.Framework.Communications.Clients
90 try 90 try
91 { 91 {
92 strBuffer = OSDParser.SerializeJsonString(args); 92 strBuffer = OSDParser.SerializeJsonString(args);
93 UTF8Encoding str = new UTF8Encoding(); 93 Encoding str = Util.UTF8;
94 buffer = str.GetBytes(strBuffer); 94 buffer = str.GetBytes(strBuffer);
95 95
96 } 96 }
@@ -218,7 +218,7 @@ namespace OpenSim.Framework.Communications.Clients
218 try 218 try
219 { 219 {
220 strBuffer = OSDParser.SerializeJsonString(args); 220 strBuffer = OSDParser.SerializeJsonString(args);
221 UTF8Encoding str = new UTF8Encoding(); 221 Encoding str = Util.UTF8;
222 buffer = str.GetBytes(strBuffer); 222 buffer = str.GetBytes(strBuffer);
223 223
224 } 224 }
@@ -459,7 +459,7 @@ namespace OpenSim.Framework.Communications.Clients
459 try 459 try
460 { 460 {
461 strBuffer = OSDParser.SerializeJsonString(args); 461 strBuffer = OSDParser.SerializeJsonString(args);
462 UTF8Encoding str = new UTF8Encoding(); 462 Encoding str = Util.UTF8;
463 buffer = str.GetBytes(strBuffer); 463 buffer = str.GetBytes(strBuffer);
464 464
465 } 465 }
@@ -543,7 +543,7 @@ namespace OpenSim.Framework.Communications.Clients
543 try 543 try
544 { 544 {
545 strBuffer = OSDParser.SerializeJsonString(args); 545 strBuffer = OSDParser.SerializeJsonString(args);
546 UTF8Encoding str = new UTF8Encoding(); 546 Encoding str = Util.UTF8;
547 buffer = str.GetBytes(strBuffer); 547 buffer = str.GetBytes(strBuffer);
548 548
549 } 549 }
@@ -637,7 +637,7 @@ namespace OpenSim.Framework.Communications.Clients
637 try 637 try
638 { 638 {
639 strBuffer = OSDParser.SerializeJsonString(args); 639 strBuffer = OSDParser.SerializeJsonString(args);
640 UTF8Encoding str = new UTF8Encoding(); 640 Encoding str = Util.UTF8;
641 buffer = str.GetBytes(strBuffer); 641 buffer = str.GetBytes(strBuffer);
642 642
643 } 643 }