I realize that chown doesn’t always run slow. It is only when there has been a previous, unsuccessful attempt at rebuild.
If it is a fresh rebuild, then chown seems to complete very quickly. If there has been a previous failed rebuild (e.g. a typo in app.yml), then it takes forever to chown. Perhaps the old files are still there?