Page 1 of 1
IdFactory
Posted: Mon Dec 14, 2009 10:36 am
by Pere
What's the difference between all the available IdFactories? Why Bitset and not another as default?
Thx ^^
Re: IdFactory
Posted: Mon Dec 14, 2009 2:07 pm
by Aikimaniac
Migi wrote:What's the difference between all the available IdFactories? Why Bitset and not another as default?
Thx ^^
Others should be removed, best performance is Bitset...the rest is crap...
Re: IdFactory
Posted: Mon Dec 14, 2009 7:16 pm
by Pere
Ok, thank you!
By the way, my idfactory began to be crazy... It says negative free ids on start :S
And when I check the DB there are negative ids, which don't create any warning. Why? Because of overflow.
I cannot understand how the *** my idfactory overflowed, it didn't reach more than 5kk objects on db... and integer max value is at 2.1kkk :S
Well, as I said, thank you ^^
Re: IdFactory
Posted: Mon Dec 14, 2009 10:32 pm
by JIV
Code: Select all
public static final int FIRST_OID = 0x10000000; public static final int LAST_OID = 0x7FFFFFFF; public static final int FREE_OBJECT_ID_SIZE = LAST_OID - FIRST_OID;
you have more that 1879048191 objects?
Re: IdFactory
Posted: Tue Dec 15, 2009 12:33 am
by Pere
of course not, but my idfactory skipped thousands and millions of ids (I don't know why)
