Reputation: 16209
Persistence of aspects between compile time and run time is achieved by serializing aspects ...
From PostSharp Documentation.
For my understanding, this is only important if I use the CompileTimeInitialize
method in order to set certain values at compile time. I use this very rarely. I think just instantiating aspects would be much faster then deserializing them, isn't it? So wouldn't PostSharp more fast, if I had the option to skip the serialization process?
Upvotes: 1
Views: 670
Reputation: 6857
I suppose you're talking of CompileTimeInitialize. If you don't need it, you can skip serialization by using MsilAspectSerializer (see http://doc.sharpcrafters.com/postsharp-2.1/Content.aspx/PostSharp-2.1.chm/html/f711d5da-5696-443c-9b42-e67a3d8b7b36.htm http://doc.postsharp.net/postsharp-2.1/Default.aspx##PostSharp-2.1.chm/html/f711d5da-5696-443c-9b42-e67a3d8b7b36.htm).
Upvotes: 3