From e21c20bd2b558886e7521354518639431bfa02fa Mon Sep 17 00:00:00 2001 From: lidgren Date: Thu, 10 May 2012 07:26:37 +0000 Subject: [PATCH] Changed SendMessage() to use a List<> instead of IList<> to avoid enumerator allocation --- Lidgren.Network/NetPeer.Send.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lidgren.Network/NetPeer.Send.cs b/Lidgren.Network/NetPeer.Send.cs index e125400..8e9b6d0 100644 --- a/Lidgren.Network/NetPeer.Send.cs +++ b/Lidgren.Network/NetPeer.Send.cs @@ -83,7 +83,7 @@ namespace Lidgren.Network /// The list of recipients to send to /// How to deliver the message /// Sequence channel within the delivery method - public void SendMessage(NetOutgoingMessage msg, IList recipients, NetDeliveryMethod method, int sequenceChannel) + public void SendMessage(NetOutgoingMessage msg, List recipients, NetDeliveryMethod method, int sequenceChannel) { if (msg == null) throw new ArgumentNullException("msg");