Fast computational techniques for multiscale electromagnetic simulations