Re: [Hibernate] Dirty checking and int/boolean arrays

2003-02-15 Thread Juozas Baliuka
I have removed my code with BitSets, this code is more readable, but it changes public API too mutch. > > BitSet creates "small" arrays It is important for some JVM > > implemetations (not trivial to handle memory fragmentation), > > but possible optimizes nothing on current implementations. > >

Re: [Hibernate] Dirty checking and int/boolean arrays

2003-02-15 Thread Gavin King
> BitSet creates "small" arrays It is important for some JVM > implemetations (not trivial to handle memory fragmentation), > but possible optimizes nothing on current implementations. These arrays don't get very big anyway, I expect (you dont have objects with 100 properties. I can't imagine it b

Re: [Hibernate] Dirty checking and int/boolean arrays

2003-02-11 Thread Juozas Baliuka
I have converted code to use BitSet , but see no better performance (not trivial to test). BitSet creates "small" arrays It is important for some JVM implemetations (not trivial to handle memory fragmentation), but possible optimizes nothing on current implementations. possible there is no optimiz

Re: [Hibernate] Dirty checking and int/boolean arrays

2003-02-11 Thread Gavin King
I was just having a look over the source of BitSet. It doesn't seem to me that it would be more performant than a simple boolean[]. (It would probably consume less _memory_, but that doesn't seem to be a very critical issue here.) Juozas, why do you expect there to be a performance gain from using

Re: [Hibernate] Dirty checking and int/boolean arrays

2003-02-10 Thread Gavin . King
[EMAIL PROTECTED] Subject: [Hibernate] Dirty checking and int/boolean arrays

[Hibernate] Dirty checking and int/boolean arrays

2003-02-09 Thread Juozas Baliuka
Hi, I see TypFactory, ClassPersister and all implementations use arrays of ints to store flags, It is not very performant and adds some grabage to code. java.util.BitSet is implemented for this use case (it is possible to implement something faster for this use case too). Can I break interfaces,