Measuring accessors

2 views
Skip to first unread message

Fabio Maulo

unread,
Jul 24, 2008, 7:11:01 PM7/24/08
to nhu...@googlegroups.com
Hi all.
A little study about accessors.

http://darioquintana.com.ar/blogging/?p=43

How much you be scare about the use of reflection in NH if 1.000.000 of access to get & set to a field mean 0.2seconds ?

--
Fabio Maulo

James Gregory

unread,
Jul 24, 2008, 7:14:04 PM7/24/08
to nhu...@googlegroups.com
Always nice to have some figures.

Ken Egozi

unread,
Jul 24, 2008, 7:27:33 PM7/24/08
to nhu...@googlegroups.com
It's not the first time I see this, but it definitely is looking nice ;), so I already have added a linking post to that on my blog.

Roger Kratz

unread,
Jul 25, 2008, 6:43:23 AM7/25/08
to nhu...@googlegroups.com
Really? Has NH-1304 been solved/patched?

Keep up the great work!
/Roger on holiday in warn and sunny Sweden

________________________________
winmail.dat

Dario Quintana

unread,
Jul 25, 2008, 12:20:24 PM7/25/08
to nhu...@googlegroups.com
Hi,

I can't see in the log changes related to NH-1304, seems like the optimization works and never was applied the patch.

Best regards
--
Dario Quintana
http://darioquintana.com.ar

Fabio Maulo

unread,
Jul 25, 2008, 12:29:42 PM7/25/08
to nhu...@googlegroups.com
2008/7/25 Dario Quintana <cont...@darioquintana.com.ar>

Hi,

I can't see in the log changes related to NH-1304, seems like the optimization works and never was applied the patch.

The JIRA, Dario.... watch the JIRA

--
Fabio Maulo

Dario Quintana

unread,
Jul 25, 2008, 12:37:21 PM7/25/08
to nhu...@googlegroups.com
What ? I can read the Jira.
I was just answer the question of Roger.

Fabio Maulo

unread,
Jul 25, 2008, 1:05:16 PM7/25/08
to nhu...@googlegroups.com
2008/7/25 Dario Quintana <cont...@darioquintana.com.ar>

What ? I can read the Jira.
I was just answer the question of Roger.

I mean watch http://jira.nhibernate.org/browse/NH-1304 ;)
I'm working on it with:
1) Fix NH-1304
2) New feature NH-1412
3) A new Breaking Change in NH2.0.0 only for custom accessors
--
Fabio Maulo

Jay Chapman

unread,
Jul 27, 2008, 10:52:08 AM7/27/08
to nhu...@googlegroups.com
If you're looking for some additional information on accessor performance, I wrote up a few articles on the subject a while back on my blog.  Take a look if you need more information.  I evaluated the different reflection optimizer techniques and went into a bit of detail as to how each one works.  Note that I learned a few things as I went, and that's why I have 3 postings.  For example, I was not aware of the StopWatch class when I first did this test.

#1: http://jaychapman.blogspot.com/2007/11/nhibernate-access-performance.html
#2: http://jaychapman.blogspot.com/2007/11/nhibernate-access-performance-revisited.html
#3: http://jaychapman.blogspot.com/2007/12/datetimenow-precision-issues-enter.html

John Chapman
Reply all
Reply to author
Forward
0 new messages