Slow ping while using ssh on a server in another continent
Are you running your IDE on the remote server? If yes, you should expect it to be slow. Try mounting a source directory over the network (say, NFS, SSHFS, among many many options, even manually using scp if you only change 1 or 2 files) and edit your source code locally and only use the remote server to execute and test.