This ^

It’s an absolutely beautifully written library by Martin Thompson, my go-to for 
years if I’m ever asked for an example of a Java codebase to study. I have read 
it essentially entirely, and more than once, and it makes me feel a little 
happier but also inadequate every time I do.

It doesn’t have concurrent primitive collections though. We can use fastutils 
for that over stock CHM and boxing and friends if we deem it to be trustworthy 
enough.

P.S. FWIW we also have a long-keyed NBHM via jctools dependency - 
NonBlockingHashMapLong, if that’s all we need.

> On 25 May 2023, at 21:05, Benedict <[email protected]> wrote:
> 
> Nope, my awareness of Agrona predates Branimir’s proposal, as does others. 
> Aleksey intended to propose its inclusion beforehand also.
> 
> If all we’re getting is lock striping, do we really need a separate library?
> 
>> On 25 May 2023, at 19:33, Jonathan Ellis <[email protected]> wrote:
>> 
>> 
>> Let's not fall prey to status quo bias, nobody performed an exhaustive 
>> analysis of agrona in November.  If Branimir had proposed fastutils at the 
>> time that's what we'd be using today.
>> 
>> 
>> 
>> On Thu, May 25, 2023 at 10:50 AM Benedict <[email protected] 
>> <mailto:[email protected]>> wrote:
>>> Given they provide no data or explanation, and that benchmarking is hard, 
>>> I’m not inclined to give much weight to their analysis.
>>> 
>>> Agrona was favoured in large part due to the perceived quality of the 
>>> library. I’m not inclined to swap it out without proper evidence the 
>>> fastutils is both materially faster in a manner care about and of similar 
>>> quality.
>>> 
>>>> On 25 May 2023, at 16:43, Jonathan Ellis <[email protected] 
>>>> <mailto:[email protected]>> wrote:
>>>> 
>>>> 
>>>> Try it out and see, the only data point I have is that the company who has 
>>>> spent more effort here than anyone else I could find likes fastutil better.
>>>> 
>>>> On Thu, May 25, 2023 at 10:33 AM Dinesh Joshi <[email protected] 
>>>> <mailto:[email protected]>> wrote:
>>>>> > On May 25, 2023, at 6:14 AM, Jonathan Ellis <[email protected] 
>>>>> > <mailto:[email protected]>> wrote:
>>>>> > 
>>>>> > Any objections to adding the concurrent wrapper and switching out 
>>>>> > agrona for fastutil?
>>>>> 
>>>>> How does fastutil compare to agrona in terms of memory profile and 
>>>>> runtime performance? How invasive would it be to switch?
>>>> 
>>>> 
>>>> -- 
>>>> Jonathan Ellis
>>>> co-founder, http://www.datastax.com <http://www.datastax.com/>
>>>> @spyced
>> 
>> 
>> -- 
>> Jonathan Ellis
>> co-founder, http://www.datastax.com <http://www.datastax.com/>
>> @spyced

Reply via email to