title: Fastest way to pack a list of floats into bytes in python
body: <p>I have a list of say 100k floats and I want to convert it into a bytes buffer.</p>
  
  <pre><code>buf = bytes()
  for val in floatList:
     buf += struct.pack('f', val)
  return buf
  </code></pre>
  
  <p>This is quite slow. How can I make it faster using only standard Python 3.x libraries.</p>