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
277 Views Asked by 0xDEAD BEEF At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in ENTERPRISE-LIBRARY
- Enterprise Library 6 - dynamically change log file name
- How to merge .net custom config sections for different environments
- The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
- VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products
- Do we need to close DbCommand in enterprise library 4.1?
- Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
- EnterpriseLibrary dbCommand.ExecuteScalarAsync is error :Invalid operation. The connection is closed
- Change Enterprise Library configuration midway in a program
- Enterprise Library TraceListener to display logging messages inside app
- Azure Web Role with Transient Fault Handling Block exception: The path is too long after being fully qualified
- Enterprise Library DAAB 6 and ODP.NET - Connection string for the default database 'XXX' does not exist
- Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. Enterprise Library
- Enterprise Library issue
- Enterprise library logging Database trace listener with custom parameter input
- Change name of source in Enterprise Library Logging
Related Questions in POLICY-INJECTION
- How do I configure Unity 2.0 Policy Injection to use custom attribute matching rule in configuration file?
- How to configure the NamespaceMatchingRule(IEnumerable<MatchingInfo>) in unity 2.0 xml configuration file?
- perfmon using EntLib - no instance in perfmon
- Enterprise Library Policy Injection Logging Managed Security Context Information in ASP.NET
- asp.net mvc controller factory
- Microsoft PolicyInjection Create too slow
- Policy Injection with Unity as AOP solution
- Applying policy based design question
- Unity Interception From Base Class
- Unity Interception in Derived Class
- Specify policy for an interceptable type
- Exception - Cannot swallow exceptions for methods with non-null return type
- Unity Interception and classes with Circular Reference
- Tracer Class for Automatic Logging of Method Entry and Exit
- Transparent logging in ASP.NET with EntLib
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 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).