How mesh() works


I have some random questions about the rendering in Codea and especially about the mesh() and the OpenGL calls.
My idea is to be able to reach the best possible performance using Codea.

How Buffer Object are bind and transfered to the GPU while using mesh:setRect() or mesh:buffer() and vec3?

What about STATIC_DRAW?

Why vec2,vec3,vec4 are so slow?

Thanks you,