Low level alternative to bpy.ops.mesh.uv_texture_add()? Blender 2.8 I was looking through the blender 2.8 bees but I can't find anything, I've seen on some forums using the bmesh module, but I'm not sure it's the right way.

I could use the operator but I already know that on large scenes inserting the ops in a "for" loop would become very slow.

bpy.ops.mesh.uv_texture_add()
A low-level alternative to bpy.ops.mesh.uv_texture_add() is obj.data.uv_layers.new(name=&quot;UvMap&quot;). This way you don't need to set the operator context.
Though, it will not allow complex unwrapping such as Smart UV Project.