Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-14 Thread Scott M Stark
- From: "Bill Burke" <[EMAIL PROTECTED]> To: Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 6:06 AM Subject: RE: [JBoss-dev] CacheKey copy semantics and speed > Sorry to chime in so lateBut hasn't my CacheKey change been in since >

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-14 Thread Rickard Öberg
Bordet, Simone wrote: > eee, man this guy seem to *always* be right. Ah well, pure alien > category. > Rickard, ehrm, who will win the football league this year ? :-)) I *could* tell, but that'd spoil the fun ;-) /Rickard -- Rickard Öberg _

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-14 Thread Bordet, Simone
Hey, > > So, if you're going to get rid of the MarshalledObject and > all the copying, > > why not just get rid of CacheKey all together? > > > Hehe... if it is removed I have only one thing to say: "told > you so"... >:-) > > /Rickard eee, man this guy seem to *always* be right. Ah wel

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-14 Thread Rickard Öberg
Bill Burke wrote: > Also remember why I added the copying to the CacheKey in the first place. > What I was doing in my application code was reusing a fat-primary key so I > didn't have to reallocate one. Thus the entity cache was getting corrupted > because I kept on changing the shared primary

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-14 Thread Bill Burke
; |[mailto:[EMAIL PROTECTED]]On Behalf Of Scott > |M Stark > |Sent: Tuesday, November 13, 2001 8:55 PM > |To: Jboss-Development@Lists. Sourceforge. Net > |Subject: Re: [JBoss-dev] CacheKey copy semantics and speed > | > | > |Ok, but all of that time was really due to the removal

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread Scott M Stark
AIL PROTECTED]> To: "Jboss-Development@Lists. Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 5:43 PM Subject: Re: [JBoss-dev] CacheKey copy semantics and speed > > Yes it does use byte[] comparisons in a for loop. Let me give you > a push in my

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread marc fleury
:) you win marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Scott |M Stark |Sent: Tuesday, November 13, 2001 8:44 PM |To: Jboss-Development@Lists. Sourceforge. Net |Subject: Re: [JBoss-dev] CacheKey copy semantics and speed | | | |Yes it does

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread marc fleury
ment@Lists. Sourceforge. Net |Subject: Re: [JBoss-dev] CacheKey copy semantics and speed | | |Ok, but all of that time was really due to the removal of the |MarshalledObject.get(). Running with the CacheKey implementation |pre the copy gives basically the same time as the non-MarshalledObject |version: | |1

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread Scott M Stark
ssage - From: "marc fleury" <[EMAIL PROTECTED]> To: "marc fleury" <[EMAIL PROTECTED]>; "Scott M Stark" <[EMAIL PROTECTED]>; "Jboss-Development@Lists. Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 5:24 PM Subject

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread marc fleury
esday, November 13, 2001 8:17 PM |To: Scott M Stark; Jboss-Development@Lists. Sourceforge. Net |Subject: RE: [JBoss-dev] CacheKey copy semantics and speed | | ||How can it be lightweight when it has to make a deep copy of the true key ||using serialization? Bill's change was to add yet anothe

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread Dain Sundstrom
One thing I have noticed it that the newbie programmers that are most likely to not implement equals and hashCode correctly, don't use a custom primary key. Instead they use an Integer, Long, or String. -dain > -Original Message- > From: marc fleury [mailto:[EMAIL PROTECTED]] > Sent: Tu

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread Scott M Stark
;[EMAIL PROTECTED]>; Sent: Tuesday, November 13, 2001 5:16 PM Subject: RE: [JBoss-dev] CacheKey copy semantics and speed > |How can it be lightweight when it has to make a deep copy of the true key > |using serialization? Bill's change was to add yet another copy, so > > bec

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread marc fleury
;Jboss-Development@Lists. Sourceforge. Net" |<[EMAIL PROTECTED]> |Sent: Tuesday, November 13, 2001 3:59 PM |Subject: RE: [JBoss-dev] CacheKey copy semantics and speed | | |> The basic cachekey is not expensive, in fact it is more |lightweight than a |> regular key, creating the serialized r

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread Scott M Stark
ssage - From: "marc fleury" <[EMAIL PROTECTED]> To: "Scott M Stark" <[EMAIL PROTECTED]>; "Jboss-Development@Lists. Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 3:59 PM Subject: RE: [JBoss-dev] CacheKey copy semantics and speed

RE: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread marc fleury
:[EMAIL PROTECTED]]On Behalf Of Scott |M Stark |Sent: Tuesday, November 13, 2001 6:51 PM |To: Jboss-Development@Lists. Sourceforge. Net |Subject: Re: [JBoss-dev] CacheKey copy semantics and speed | | |It wasn't Bill that added this. It was first added in 1.2 and then expanded |in |1.8, more co

Re: [JBoss-dev] CacheKey copy semantics and speed

2001-11-13 Thread Scott M Stark
It wasn't Bill that added this. It was first added in 1.2 and then expanded in 1.8, more copying added in 1.10, etc. This whole thing started to create an idiot proof key, which cannot be done. Instead we have a big fat expensive key that is killing performance. Let the user live and die by their