Skip to content

Instantly share code, notes, and snippets.

@tomdavidson
Created May 24, 2024 04:45
Show Gist options
  • Save tomdavidson/b242f3a17d436f7f425c6b5f3b25d680 to your computer and use it in GitHub Desktop.
Save tomdavidson/b242f3a17d436f7f425c6b5f3b25d680 to your computer and use it in GitHub Desktop.
idea to use ramdisk for workspace
# create ram disk
sudo mount -t tmpfs -o size=8G tmpfs /mnt/ramdisk
# initial sync without --delete
rsync -avP /path/to/your/workspace/ /mnt/ramdisk
# keep in sync with 5 sec delay to min overehad
chokidar "**/*" --delay 5000 \
--command "rsync -avP --delete /path/to/your/workspace/ /mnt/ramdisk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment