CNMAT / CNMAT-odot-cpma

ODOT Immersion - Computer Programming for Music Applications
5 stars 0 forks source link

attempt to answer questions about speed of map() #3

Closed equilet closed 6 years ago

equilet commented 7 years ago

@ramagottfried @maccallum

equilet commented 7 years ago

MacCallum pointed out that the speed of map is a product of

  1. what you are asking map() to do, and
  2. a stateless implementation. since ODOT is not stateful, it cannot precompute or optimize out some of the computation as a low-level compiler would with nested for() loops etc.

Jon K.'s case was finding distances between 100 points to each and every other point (10,000 calculations).

If there are other issues to discuss surrounding this topic, we should enumerate them here. Looping @kulpajj in.