title: Python Quadruple For Performance
body: <p>I have code that reads data and grabs specific data from an object's fields.
  How can I eliminate the quadruple for loop here? Its performance seems quite slow.</p>
  <pre class="lang-py prettyprint-override"><code>data = readnek(filename) # read in data
  bigNum=200000
  for myNodeVal in range(0, 7):  # all 6 elements. 
      cs_coords = np.ones((bigNum, 2)) # initialize data
      counter = 0
      for iel in range(bigNum):
          for ix in range(0,7):
              for iy in range(0,7):
                  z = data.elem[iel].pos[2, myNodeVal, iy, ix]  
                  x = data.elem[iel].pos[0, myNodeVal, iy, ix] 
                  y = data.elem[iel].pos[1, myNodeVal, iy, ix]
                  cs_coords[counter, 0:2] = [x, y]
                  counter += 1
  </code></pre>