title: pykka -- Actors are slow?
body: <p>I am currently experimenting with Actor-concurreny (on Python), because I want to learn more about this. Therefore I choosed <code>pykka</code>, but when I test it, it's more than <strong>half as slow</strong> as an normal function.</p>
  
  <p>The Code is only to look if it works; it's not meant to be elegant. :)</p>
  
  <p>Maybe I made something wrong?</p>
  
  <pre><code>from pykka.actor import ThreadingActor
  import numpy as np
  
  class Adder(ThreadingActor):
      def add_one(self, i):
          l = []
          for j in i:
              l.append(j+1)
          return l
  
  if __name__ == '__main__':
      data = np.random.random(1000000)
      adder = Adder.start().proxy()
      adder.add_one(data)
      adder.stop()
  </code></pre>
  
  <p>This runs not so fast:</p>
  
  <pre><code>time python actor.py
  
  real    0m8.319s
  user    0m8.185s
  sys     0m0.140s
  </code></pre>
  
  <p>And now the dummy 'normal' function:</p>
  
  <pre><code>def foo(i):
      l = []
      for j in i:
          l.append(j+1)
      return l
  
  if __name__ == '__main__':
      data = np.random.random(1000000)
      foo(data)
  </code></pre>
  
  <p>Gives this result:</p>
  
  <pre><code>real    0m3.665s
  user    0m3.348s
  sys     0m0.308s
  </code></pre>