You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benedict (JIRA)" <ji...@apache.org> on 2015/09/14 20:47:47 UTC
[jira] [Commented] (CASSANDRA-10322) skipBytes is used extensively,
but is slow
[ https://issues.apache.org/jira/browse/CASSANDRA-10322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14744013#comment-14744013 ]
Benedict commented on CASSANDRA-10322:
--------------------------------------
Patch available [here|https://github.com/belliottsmith/cassandra/tree/10322]
> skipBytes is used extensively, but is slow
> ------------------------------------------
>
> Key: CASSANDRA-10322
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10322
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Benedict
> Assignee: Benedict
> Priority: Minor
> Fix For: 3.0.x
>
>
> We skip a great deal to avoid materializing data. Ironically, however, skipping is just as (perhaps more) expensive, as it allocates a temporary array of the size of the number of bytes we want to skip.
> This trivial patch implements {{skipBytes}} more efficiently, and simplifies {{FileUtils.skipBytesFully}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)