Wait but why?

  • Arrays in most programming languages are contiguous blocks of memory
  • JavaScript arrays can have holes though
  • It may be inefficient to allocate a contiguous block of memory when there are holes though
  • Also, some common operations are manually optimized for different types of arrays (map, reduce, filter, etc) with CodeStubAssembler

19 / 24