You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jason Rutherglen <ja...@gmail.com> on 2009/02/03 19:58:30 UTC
BitVector.get bounds checking
A simple way to make BitVector faster would be to turn the get method
bounds checking into an assertion. This is similar to
OpenBitSet.fastGet.
RE: BitVector.get bounds checking
Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi Andi,
> Isn't that depending on Java 1.5 ?
Assertions work since Java 1.4 I think. We have a lot of assertions in code.
And it would not compile with -source 1.4, as we do.
> <lu...@mikemccandless.com> wrote:
>
> >
> > I think that makes sense. I'll wait a day or so and then commit it
> > if there are no objections.
> >
> > Mike
> >
> > Jason Rutherglen wrote:
> >
> >> A simple way to make BitVector faster would be to turn the get method
> >> bounds checking into an assertion. This is similar to
> >> OpenBitSet.fastGet.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: BitVector.get bounds checking
Posted by Michael McCandless <lu...@mikemccandless.com>.
Tell me about it! We gotta get 2.9/3.0 out, so we can switch to 1.5.
The 1.5/1.6 line is less blurry :)
Mike
Andi Vajda wrote:
>
> On Tue, 3 Feb 2009, Michael McCandless wrote:
>
>> Do you mean the assert statement? That's available since 1.4.
>
> Yeah, that's what I meant. 1.5 vs 1.4 is getting blurry :)
>
> Andi..
>
>>
>> Mike
>>
>> Andi Vajda wrote:
>>
>>> Isn't that depending on Java 1.5 ?
>>> Andi..
>>> On Feb 3, 2009, at 11:38, Michael McCandless <lucene@mikemccandless.com
>>> > wrote:
>>>> I think that makes sense. I'll wait a day or so and then commit
>>>> it if there are no objections.
>>>> Mike
>>>> Jason Rutherglen wrote:
>>>>> A simple way to make BitVector faster would be to turn the get
>>>>> method
>>>>> bounds checking into an assertion. This is similar to
>>>>> OpenBitSet.fastGet.
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: BitVector.get bounds checking
Posted by Andi Vajda <va...@osafoundation.org>.
On Tue, 3 Feb 2009, Michael McCandless wrote:
> Do you mean the assert statement? That's available since 1.4.
Yeah, that's what I meant. 1.5 vs 1.4 is getting blurry :)
Andi..
>
> Mike
>
> Andi Vajda wrote:
>
>> Isn't that depending on Java 1.5 ?
>>
>> Andi..
>>
>> On Feb 3, 2009, at 11:38, Michael McCandless <lu...@mikemccandless.com>
>> wrote:
>>
>>>
>>> I think that makes sense. I'll wait a day or so and then commit it if
>>> there are no objections.
>>>
>>> Mike
>>>
>>> Jason Rutherglen wrote:
>>>
>>>> A simple way to make BitVector faster would be to turn the get method
>>>> bounds checking into an assertion. This is similar to
>>>> OpenBitSet.fastGet.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: BitVector.get bounds checking
Posted by Michael McCandless <lu...@mikemccandless.com>.
Do you mean the assert statement? That's available since 1.4.
Mike
Andi Vajda wrote:
> Isn't that depending on Java 1.5 ?
>
> Andi..
>
> On Feb 3, 2009, at 11:38, Michael McCandless <lucene@mikemccandless.com
> > wrote:
>
>>
>> I think that makes sense. I'll wait a day or so and then commit it
>> if there are no objections.
>>
>> Mike
>>
>> Jason Rutherglen wrote:
>>
>>> A simple way to make BitVector faster would be to turn the get
>>> method
>>> bounds checking into an assertion. This is similar to
>>> OpenBitSet.fastGet.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: BitVector.get bounds checking
Posted by Andi Vajda <va...@osafoundation.org>.
Isn't that depending on Java 1.5 ?
Andi..
On Feb 3, 2009, at 11:38, Michael McCandless
<lu...@mikemccandless.com> wrote:
>
> I think that makes sense. I'll wait a day or so and then commit it
> if there are no objections.
>
> Mike
>
> Jason Rutherglen wrote:
>
>> A simple way to make BitVector faster would be to turn the get method
>> bounds checking into an assertion. This is similar to
>> OpenBitSet.fastGet.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: BitVector.get bounds checking
Posted by Michael McCandless <lu...@mikemccandless.com>.
I think that makes sense. I'll wait a day or so and then commit it if
there are no objections.
Mike
Jason Rutherglen wrote:
> A simple way to make BitVector faster would be to turn the get method
> bounds checking into an assertion. This is similar to
> OpenBitSet.fastGet.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org