Redirects performance: permalinks vs nginx

And if NGINX did that before reverse proxying to Rails, wouldn’t it make all of those lookups longer?