How to minimize time complexity when executing FEM on a highly refined mesh?

Did you try:

 solve(a==L, u, bc, solver_parameters={"linear_solver": "mumps"})

as in: