How to use loops.foreach_set and polygons.foreach_set to add faces to a mesh
Got it, what was missing was not:

me.loops.foreach_set("vertex_index", vert_idx)


but correct:

me.polygons.foreach_set("vertices", ...


i tried it before and it crashed all the time because i forgot to ravel() the numpy array i used.