[
https://issues.apache.org/jira/browse/CASSANDRA-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854465#action_12854465
]
Hudson commented on CASSANDRA-950:
----------------------------------
Integrated in Cassandra #400 (See
[http://hudson.zones.apache.org/hudson/job/Cassandra/400/])
Cache BufferedRandomAccessFile.length result to avoid native call. Patch by
johan, review by jbellis.
> Cache BufferedRandomAccessFile.length
> -------------------------------------
>
> Key: CASSANDRA-950
> URL: https://issues.apache.org/jira/browse/CASSANDRA-950
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Johan Oskarsson
> Assignee: Johan Oskarsson
> Fix For: 0.7
>
> Attachments: CASSANDRA-950.patch, CASSANDRA-950.patch
>
>
> Profiling shows that BufferedRandomAccessFile.length is eating up an
> unexpected amount of cpu. It believe it is the call through the "native
> barrier" that is causing it. We often call the length method via is end of
> file when reading data. We can add caching of the file length to avoid this
> call most times.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.