Any way to speed up adding faces and edges?

I tried polygonmesh. It was much faster than add_face. However, I was stumped by material. PolygonMesh could not apply material in individual face, here is a clear explanation. . I am wondering if it is possible to add material to faces after Entities#fill_from_mesh.