currently I\'m using the build in function dist to calculate my distance matrix in R.
dist(featureVector,method=\"manhattan\")
This is curr
The R package amap provides robust and parallelized functions for Clustering and Principal Component Analysis. Among these functions, Dist method offers what you are looking for: computes and returns the distance matrix in a parallel manner.
Dist(x, method = "euclidean", nbproc = 8)
The code above compute euclidean distance with 8 threads.