From ee3f679aa33ed6590fafd1a4aa67f76f6a2114b1 Mon Sep 17 00:00:00 2001 From: drieseng Date: Tue, 14 Jun 2016 22:28:49 +0200 Subject: [PATCH] Separate creating, enabling/disabling, activating/deactivating of messages into SshMessageFactory. Huge performance improvement in micro-benchmark. Work in progress. --- .../Renci.SshNet.NET35.csproj | 5 +- src/Renci.SshNet.NET35/Session.NET35.cs | 24 - .../Session.SilverlightShared.cs | 24 - .../Renci.SshNet.Silverlight5.csproj | 5 +- .../Renci.SshNet.Tests.csproj | 3 + .../Renci.SshNet.UAP10.csproj | 3 + .../Renci.SshNet.WindowsPhone8.csproj | 5 +- src/Renci.SshNet/Renci.SshNet.csproj | 1 + src/Renci.SshNet/Session.NET40.cs | 20 - src/Renci.SshNet/Session.cs | 93 +-- src/Renci.SshNet/SshMessageFactory.cs | 191 ++++++ .../Renci.SshNet.Shared.Tests.projitems | 1 + .../SshMessageFactoryTest.cs | 632 ++++++++++++++++++ 13 files changed, 854 insertions(+), 153 deletions(-) create mode 100644 src/Renci.SshNet/SshMessageFactory.cs create mode 100644 test/Renci.SshNet.Shared.Tests/SshMessageFactoryTest.cs diff --git a/src/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj b/src/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj index 36ac1d66..cdd01c56 100644 --- a/src/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj +++ b/src/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj @@ -918,6 +918,9 @@ SshCommand.cs + + SshMessageFactory.cs + SubsystemSession.cs @@ -937,7 +940,7 @@ - +