title: VB.Net Faster way of summing values in an array
body: <p>Currently I use a for loop for summing the values stored in a byte array type:</p>
  
  <pre><code>Dim values As Byte() = {1, 23, 42, 12, 9, 102, 86, 0, 0, 0, 0, etc...}
  Dim sum As Integer
  For Each value As Byte In values
       If value = 0 Then
            Exit For
       End If
       sum += value
  Next
  </code></pre>
  
  <p>Since this is a part of a function that is called multiple times a second, is there a faster/more efficient way of summing the values stored in an array?</p>