[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openejb-development
Subject:    RE: [OpenEJB-dev] What's the overhead from using Proxies?
From:       "David Blevins" <david.blevins () visi ! com>
Date:       2003-02-17 23:52:51
[Download RAW message or body]

It involves reflection which is always much slower compared to calling
the method directly.
 
On that note, our ProxyFactory interface would allow us to change that.
We could create a ProxyFactory implementation that actually generated
java code that called the handler directly, etc.  That is the way we
used to do things actually (DynamicProxyFactory), unfortunately that
implementation isn't right.  I got part way into rewriting it a few
months ago, but didn't get too far before I ran out of time.  I may have
the code somewhere.
 
-David
 
 
-----Original Message-----
From: openejb-development-admin@lists.sourceforge.net
[mailto:openejb-development-admin@lists.sourceforge.net] On Behalf Of
Alan Cabrera
Sent: Monday, February 17, 2003 4:24 PM
To: 'openejb-development@lists.sourceforge.net'
Subject: [OpenEJB-dev] What's the overhead from using Proxies?



What's the overhead, if any, incurred by using Proxies instead of
compiling stubs when Beans are deployed?  I was just curious.
 
 
Regards,
Alan
 
 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff size=2>It 
involves reflection which is always much slower&nbsp;compared to calling the 
method directly.</FONT></SPAN></DIV>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff size=2>On 
that note, our ProxyFactory interface would allow us to change that.&nbsp; We 
could create a ProxyFactory implementation that actually generated java code 
that called the handler directly, etc.&nbsp; That is the way we used to do 
things actually (DynamicProxyFactory), unfortunately that implementation isn't 
right.&nbsp; I got part way into rewriting it a few months ago, but didn't get 
too far before I ran out of time.&nbsp; I may have the code 
somewhere.</FONT></SPAN></DIV>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff 
size=2>-David</FONT></SPAN></DIV>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=035191923-17022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
openejb-development-admin@lists.sourceforge.net 
[mailto:openejb-development-admin@lists.sourceforge.net] <B>On Behalf Of 
</B>Alan Cabrera<BR><B>Sent:</B> Monday, February 17, 2003 4:24 PM<BR><B>To:</B> 
'openejb-development@lists.sourceforge.net'<BR><B>Subject:</B> [OpenEJB-dev] 
What's the overhead from using Proxies?<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV><SPAN class=000461122-17022003><FONT face=Arial size=2>What's the 
  overhead, if any, incurred by using Proxies instead of compiling stubs when 
  Beans are deployed?&nbsp; I was just curious.</FONT></SPAN></DIV>
  <DIV><SPAN class=000461122-17022003><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=000461122-17022003><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=000461122-17022003><FONT face=Arial 
  size=2>Regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=000461122-17022003><FONT face=Arial 
  size=2>Alan</FONT></SPAN></DIV>
  <DIV><SPAN class=000461122-17022003><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN 
class=000461122-17022003></SPAN>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-development mailing list
OpenEJB-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openejb-development

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic