Slow performance with Castle Windsor Interceptor

327 views
Skip to first unread message

Dan

unread,
Dec 21, 2010, 9:20:48 AM12/21/10
to nhprof
Hi,

We've refactored some code to handle cross-cutting concerns like the
opening/closing of the NHibernate session, exception management and
logging to an interceptor class. The interceptor class implements the
Castle.Core.Interceptor.IInterceptor interface.

This all appears to work fine, however we've noticed that our unit
tests take around twice as long to run when using the refactored code
with NHibernate Profiler than they did with the old version of the
code. There is no noticeable difference in performance between the
old and new code when we (a) remove the NHibernate Profiler appender
in the log4net configuration or (b) when we switch the NHibernate
Profiler appender to log to a file instead of directly to the
NHibernate Profiler application.

Although it's only an issue in development, it would be good to know
why we're experiencing a slowdown. Does anyone have idea what the
problem might be?

Cheers,

Dan

Boxer, Aaron

unread,
Dec 21, 2010, 10:09:59 AM12/21/10
to nhp...@googlegroups.com
I've experience the same issue. My app is so large, it is hard to carve out
a piece as
a test case, so Ayende can reproduce.

Hi,

Cheers,

Dan

--
You received this message because you are subscribed to the Google Groups
"nhprof" group.
To post to this group, send email to nhp...@googlegroups.com.
To unsubscribe from this group, send email to
nhprof+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/nhprof?hl=en.


This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.

Ayende Rahien

unread,
Dec 21, 2010, 12:47:10 PM12/21/10
to nhprof
Guys, I have a repro for this, and I'm hoping to have a fix by next week.

Daniel Godley

unread,
Dec 21, 2010, 12:51:21 PM12/21/10
to nhp...@googlegroups.com

Great stuff, thanks Ayende.

 

Dan

 

Seven Investment Management were awarded Best Multi Manager Provider 2010 by Moneyfacts in September 2010. We also won a 5 Star Service Award from FTAdviser and a 5 star Service Rating from Defaqto for the 7IM Platform in July 2010.

 

 

Seven Investment Management Limited is authorised and regulated by the Financial Services Authority. Member of the London Stock Exchange. Registered office: 125 Old Broad Street, London EC2N 1AR. Registered in England and Wales number 4092911. This email (including any attachment) is for the sole use of the intended recipient(s), and may contain information which is confidential, privileged or otherwise protected by law. If you are not the intended recipient(s), please delete this email from your system and notify the sender immediately. Any form of copying, disclosure or other use of this email (or any part of it) is prohibited if you are not the intended recipient(s). This email is not intended to be relied upon by any person without subsequent written confirmation of its contents, and Seven Investment Management Limited accepts no liability (including in negligence) for the consequences of any reliance before receipt of such confirmation. Email communications cannot be guaranteed to be secure or free from error or viruses, and may be subject to our monitoring procedures. Please visit our website at http://www.7im.co.uk.

 

 

Ayende Rahien

unread,
Jan 2, 2011, 9:57:18 AM1/2/11
to nhp...@googlegroups.com
The issue will be fixed in the next build

Boxer, Aaron

unread,
Jan 4, 2011, 1:54:43 PM1/4/11
to nhp...@googlegroups.com

Cool!

Reply all
Reply to author
Forward
0 new messages