What is the recommended way to do sprite or mesh batching?

This approach would scale to other languages better I think: Troika-3d-text: library for SDF text rendering