Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Contents/MacOS/startupRAMDiskandCacheMover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,23 @@ move_phpstorm_cache()
fi
}

#
# Spotify
#
move_spotify_cache()
{
if [ -d "/Applications/Spotify.app" ]; then
if user_response "${MSG_PROMPT_FOUND}" 'Spotify'"${MSG_MOVE_CACHE}" ; then
echo "moving Spotify cache";
close_app "Spotify"
rm -rf ~/Library/Caches/com.spotify.client
/bin/mkdir -pv "${USERRAMDISK}"/Spotify
/bin/ln -s "${USERRAMDISK}"/Spotify ~/Library/Caches/com.spotify.client
echo "Moved Spotify cache."
fi
fi
}

# -----------------------------------------------------------------------------------
# The entry point
# -----------------------------------------------------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ Supported apps (you can add yours):
* [AppCode](https://www.jetbrains.com/objc/)
* [Xcode](https://developer.apple.com/xcode/downloads/)
* [PHP Storm](https://www.jetbrains.com/phpstorm/)
* [Spotify](https://www.spotify.com)
* [your_app_goes_here]

The IntelliJ Idea (or JetBrains IDEs) are really fast after this. Be aware that for the large code base you will
need to have larger RAM Disk. I don't have exact numbers, sorry, it can vary because of many factors. Mine
need to have larger RAM Disk. I don't have exact numbers, sorry, it can vary because of many factors. Mine
machine have 16GB - it works very good for small code bases.

If you observing performance degradation - revise how much memory you are using and may be adding more can help.
By default script will create RAM disk of 1/4 size of your RAM.
If you need to change the size - edit `startupRAMDiskandCacheMover.sh` header section. The RAM disk works with hibernate
option - you don't need to worry about this part.

Have something to discuss?
Have something to discuss?
[![Join the chat at https://gitter.im/zafarella/OSX-RAMDisk](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/zafarella/OSX-RAMDisk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/458/badge)](https://bestpractices.coreinfrastructure.org/projects/458)
Expand Down Expand Up @@ -71,10 +72,10 @@ change "Project compiler output" and point it to ram disk:
echo /Volumes/ramdisk/${USER}/compileroutput
```
and in your project/module settings (Command+down) point to this directory.
You can also set this [setting by default](https://www.jetbrains.com/idea/help/accessing-default-settings.html)
You can also set this [setting by default](https://www.jetbrains.com/idea/help/accessing-default-settings.html)
for your projects at the main menu, choose `File | Other Settings | Default Settings`

In addition to above you can tune jvm with following [flags](https://gist.github.com/zafarella/43bc260c3c0cdc34f109)
In addition to above you can tune jvm with following [flags](https://gist.github.com/zafarella/43bc260c3c0cdc34f109)
`vim /Applications/IntelliJ\ IDEA\ 15.app/Contents/bin/idea.vmoptions`

Installation
Expand Down