[
https://issues.apache.org/jira/browse/SIS-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Desruisseaux updated SIS-306:
------------------------------------
Description: Profiling shows that reading of compressed file formats spend
a lot of time in {{{}ChannelDataInput.readBits(int){}}}. We may try to improve
performance by replacing all calls to {{readByte()}} and {{readUnsignedByte()}}
in that method by calls to {{{}buffer.get(){}}}. But before, we need to invoke
{{{}ensureBufferContains(int){}}}. However we will try to invoke the later
method only once, instead of at each call of {{{}readByte(){}}}. (was:
Profiling shows that reading of compressed file formats spend a lot of time in
{{ChannelDataInput.readBits(int)}}. We may try to improve performance by
replacing all calls to {{readByte()}} and {{readUnsignedByte()}} is that method
by calls to {{buffer.get()}}. But before, we need to invoke
{{ensureBufferContains(int)}}. However we will try to invoke the later method
only once, instead than at each call of {{readByte()}}.)
> Improve performance of ChannelDataInput.readBits(int)
> -----------------------------------------------------
>
> Key: SIS-306
> URL: https://issues.apache.org/jira/browse/SIS-306
> Project: Spatial Information Systems
> Issue Type: Improvement
> Components: Storage
> Affects Versions: 0.3, 0.4, 0.5, 0.6
> Reporter: Martin Desruisseaux
> Priority: Minor
> Fix For: 1.7
>
>
> Profiling shows that reading of compressed file formats spend a lot of time
> in {{{}ChannelDataInput.readBits(int){}}}. We may try to improve performance
> by replacing all calls to {{readByte()}} and {{readUnsignedByte()}} in that
> method by calls to {{{}buffer.get(){}}}. But before, we need to invoke
> {{{}ensureBufferContains(int){}}}. However we will try to invoke the later
> method only once, instead of at each call of {{{}readByte(){}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)