Skip to content
Snippets Groups Projects
Commit e1433747 authored by Martin Larralde's avatar Martin Larralde
Browse files

Mark `StripedScores.index` as `inline` to speed-up loop indexing

parent 085a85c2
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ impl<C: Unsigned + NonZero> Default for StripedScores<C> {
impl<C: Unsigned + NonZero> Index<usize> for StripedScores<C> {
type Output = f32;
#[inline]
fn index(&self, index: usize) -> &f32 {
let col = index / self.data.rows();
let row = index % self.data.rows();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment