Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rsync resources in Pods-resouces.sh is too slow #1050

Closed
onato opened this Issue · 3 comments

3 participants

@onato

I have decreased the time it takes to run Pods-resouces.sh on my project from 26 seconds to 6 seconds.

I have a lot of resources so the bottle neck is the rsync commands that copy the resources.

This can be sped up by instead issuing just one rsync command ( rsync --files-from ). I have modified my Pods-resouces.sh script as follows

RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy.txt
install_resource()
{
…
    *)
      echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
      #rsync -av --exclude '*/.svn/*' "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
      ;;
…
install_resource 'blah1/blah.png'
install_resource 'blah2.png'
…
rsync -avr --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
rm "$RESOURCES_TO_COPY"

Can you please implement something like this to speed up the build time?

@fabiopelosin

That sounds great, if you would like to submit a pull request you can find the relevant file here.

@fabiopelosin

Thanks!

@jpmhouston

Still too slow! (Is it ok to followup on this even though the issue is closed?)

I've fixed the xcasset part of the script too, when actool is run to copy asset catalogs into the target, so its only applied to asset catalogs in the Pods dir and not the entire source. My pull req. is #2426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.