cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedict (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-9901) Make AbstractType.isByteOrderComparable abstract
Date Tue, 25 Aug 2015 15:36:47 GMT


Benedict updated CASSANDRA-9901:
    Attachment: C2 compilation output

Here is the assembly resulting from the C2 compilation of the method as you propose it. Note
the lack of detection of identical subexpressions in the inlined method and the method it
is being inlined to, i.e. the duplicated inlining of {{FastByteOperations.UnsafeOperations.compareTo}}.
Calculating their offsets in memory, each instance occupies approximately 476 bytes.

> Make AbstractType.isByteOrderComparable abstract
> ------------------------------------------------
>                 Key: CASSANDRA-9901
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: Benedict
>             Fix For: 3.0 beta 2
>         Attachments: C2 compilation output
> I can't recall _precisely_ what was agreed at the NGCC, but I'm reasonably sure we agreed
to make this method abstract, put some javadoc explaining we may require fields to yield true
in the near future, and potentially log a warning on startup if a user-defined type returns
> This should make it into 3.0, IMO, so that we can look into migrating to byte-order comparable
types in the post-3.0 world.

This message was sent by Atlassian JIRA

View raw message