Our project is using PolicyInjection (from Microsoft EnterpriseLibrary) for some reason. Problem is, that PolicyInjection.Create(params) takes about 30 ms. This is WAY too much since it is called over 100 times for single request which summs up in unaccapetable performance hit. Is there any solution to this problem? We are using EnterpriseLibary 4.1
Microsoft PolicyInjection Create too slow
278 Views Asked by 0xDEAD BEEF At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in PERFORMANCE
- Upsert huge amount of data by EFCore.BulkExtensions
- How can I resolve this error and work smoothly in deep learning?
- Efficiently processing many small elements of a collection concurrently in Java
- Theme Preloader for speed optimization in WordPress
- I need help to understand the time wich my simple ''hello world'' is taking to execute
- Non-blocking state update
- Do conditional checks cause bottlenecks in Javascript?
- Performance of sketch drastically decreases outside of the P5 Web Editor
- sample query for review for improvement on big query
- Is there an indexing strategy in Postgres which will operate effectively for JOINs with ORs
- Performance difference between two JavaScript code snippets for comparing arrays of strings
- C++ : Is there an objective universal way to compare the speed of iterative algorithms?
- How to configure api http request with load testing
- the difference in terms of performance two types of update in opensearch
- Sveltekit : really long to send the first page and intense CPU computation
Related Questions in ENTERPRISE-LIBRARY
- EnterpriseLibrary.Data.NetCore(6.3.2) auto creates SqlDatabase class object instead of OleDatabase
- EnterpriseLibrary.Logging severity level setting in app.config
- .net framework 4.7.2 and Microsoft EnterpriseLibrary v5 version incompatibility?
- Error when converting VB.NET App to from 32-bit to 64-bit
- Microsoft.Practices.EnterpriseLibrary Caching Error in GetCacheManager
- EnterpriseLibraryContainer.Current.GetInstance() equivalent Updating Project from Enterprise Library 5 to 6
- Enterprise Library 5.0 Logging exception on startup
- Microsoft.Practices.EnterpriseLibrary.Logging 4.0 RollingFlatFileLogger rollover causing service to freeze
- Microsoft.Practices.EnterpriseLibrary.Data CreateDatabase error
- ParameterCache.SetParameters is not populating the parameters
- Dot net test fails to restore EnterpriseLibrary.Logging Nuget in Azure DevOps
- Asynchronous Database call to MySql Database gives error
- C# EnterpriseLibrary trouble obtaining an Output Parameter
- Want a common EnterpriseLibrary for .NET Core MVC (common database file)
- DatabaseFactory.CreateDatabase() Returning Encrypted Values
Related Questions in POLICY-INJECTION
- Unity Interception From Base Class
- Policy Injection Intercept not working for WebAPI Controllers
- Policy Injection with Unity as AOP solution
- Unity Interception and classes with Circular Reference
- Exception - Cannot swallow exceptions for methods with non-null return type
- Unity + Interception + Fakes = Big Ball of Fire
- Tracer Class for Automatic Logging of Method Entry and Exit
- perfmon using EntLib - no instance in perfmon
- How to configure the NamespaceMatchingRule(IEnumerable<MatchingInfo>) in unity 2.0 xml configuration file?
- How do I configure Unity 2.0 Policy Injection to use custom attribute matching rule in configuration file?
- asp.net mvc controller factory
- How to apply PIAB in WCF with MEF?
- How to add custom context data to be logged with Policy Injection in WCF?
- Unity Interception in Derived Class
- Specify policy for an interceptable type
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Ok. So after a lot of investigation I came to conclusion that PolicyInjection simply really is very slow and should never be used in projects! We are going to switch over to PostSharp or simply get rid of PI. PI uses Unity in background for building proxy class. This is incredibly slow process. There are no caches so it is slow slow slow. PI Create can easily take 30 and more miliseconds. Only way to use it is if you are very sure that it won't get called more than few times (but even 30 calls will end up in 1 second).