AliasToBeanConstructorResultTransformer Improvement
Jonathon Gottschalk <[email protected]> Wed, 3 Sep 2008 18:46:54 -0400
| Newsgroups | gmane.comp.windows.dotnet.nhibernate.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1824076737==
Content-Type: multipart/alternative;
boundary="_bf20aa4d-9ccd-45b6-94e6-7b3e468bb976_"
--_bf20aa4d-9ccd-45b6-94e6-7b3e468bb976_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello=2C I am posting this message here at Fabio's request. I made an impr=
oved version of one of the NH classes utilizing IL code and he wanted feedb=
ack from the other developers and contributers on the matter. You can see =
my original JIRA post at the following URL:
=20
http://jira.nhibernate.org/browse/NH-1433
=20
Basically=2C I modified the class to remove the slow reflection call with a=
direct IL code call=2C which resulted in a marked performance increase whe=
n utilizing the new keyword. HQL queries that utilize the new keyword (or =
any operation that causes an instance of the AliasToBeanConstructorResultTr=
ansformer) would be affected by this patch. I inserted proper security che=
cks to make sure the IL code method can actually be used in situations wher=
e the current security context might not allow it (such as Medium Trust)=2C=
and if the security context does not allow it simply revert to the standar=
d reflection-based method that it currently uses.
=20
I am more than happy to answer any questions regarding this patch. Thanks.
_________________________________________________________________
See how Windows connects the people=2C information=2C and fun that are part=
of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/=
--_bf20aa4d-9ccd-45b6-94e6-7b3e468bb976_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style>
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt=3B
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>Hello=2C I am posting this message here at Fabio'=
s request. =3B I made an improved version of one of the NH classes util=
izing IL code and he wanted feedback from the other developers and contribu=
ters on the matter. =3B You can see my original JIRA post at the follow=
ing URL:<BR>
 =3B<BR>
<A href=3D"http://jira.nhibernate.org/browse/NH-1433">http://jira.nhibernat=
e.org/browse/NH-1433</A><BR>
 =3B<BR>
Basically=2C I modified the class to remove the slow reflection call with a=
direct IL code call=2C which resulted in a marked performance increase whe=
n utilizing the new keyword. =3B HQL queries that utilize the new keywo=
rd (or any operation that causes an instance of the AliasToBeanConstructorR=
esultTransformer) would be affected by this patch. =3B I inserted prope=
r security checks to make sure the IL code method can actually be used in s=
ituations where the current security context might not allow it (such as Me=
dium Trust)=2C and if the security context does not allow it simply revert =
to the standard reflection-based method that =3Bit currently uses.<BR>
 =3B<BR>
I am more than happy to answer any questions regarding this patch. =3B =
Thanks.<BR><br /><hr />See how Windows connects the people=2C information=
=2C and fun that are part of your life. <a href=3D'http://clk.atdmt.com/MRT=
/go/msnnkwxp1020093175mrt/direct/01/' target=3D'_new'>See Now</a></body>
</html>=
--_bf20aa4d-9ccd-45b6-94e6-7b3e468bb976_--
--===============1824076737==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============1824076737==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Nhibernate-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
--===============1824076737==--