cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-14260) Refactor pair to avoid boxing longs/ints
Date Fri, 02 Mar 2018 06:21:00 GMT


Jeff Jirsa commented on CASSANDRA-14260:

Force pushed, refactored to have specialized inner classes anywhere a Pair was used with primitives.
Branch [here|] with some
fixes. Tests will run [here|]
. 2 commits, one with the main change, and a second to add {{hashCode()}} and {{equals()}}

[~bdeggleston] interested in review ( or [~slebresne] , not sure if you're still up for reviews
). There's at least one or two name changes I'm not thrilled with, so please nit pick the
naming, I dont like them, but I'm low on creativity.

> Refactor pair to avoid boxing longs/ints
> ----------------------------------------
>                 Key: CASSANDRA-14260
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jeff Jirsa
>            Assignee: Jeff Jirsa
>            Priority: Minor
>             Fix For: 4.x
> We uses Pair<X,Y> all over the place, and in many cases either/both of X and Y
are primitives (ints, longs), and we end up boxing them into Integers and Longs. We should
have specialized versions that take primitives. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message