<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r69383328">src/mlpack/methods/ne/genome.hpp</a>:</p>
<pre style='color:#555'>&gt; +      aNumOutput = genome.aNumOutput;
&gt; +      aFitness = genome.aFitness;
&gt; +      aAdjustedFitness = genome.aAdjustedFitness;
&gt; +    }
&gt; +
&gt; +    return *this;
&gt; +  }
&gt; +
&gt; +  // Get genome id.
&gt; +  ssize_t Id() const { return aId; }
&gt; +
&gt; +  // Set genome id.
&gt; +  void Id(ssize_t id) { aId = id; }
&gt; +
&gt; +  // Get input length.
&gt; +  ssize_t NumInput() {
</pre>
<p>Since the input number of inputs never changed and we don't add another Bias neuron, we could calculate NumInput once. It's a relative simple function, but we call it fairly often.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/686/files/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383328">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFHb-oJUxMin89tztbnFTEwPh-wO7ks5qRuLtgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFF__7NApjrpwbGBYs1ANe5_cJhCaks5qRuLtgaJpZM4IwJa6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/686/files/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383328"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>