Below we compare the cost of how we currently handle compressed data in Stan vs. how we would handle compressed data if Stan had a sparse matrix type.
The stan model below is a relatively common model form where we are calculating coefficients for several groups.
data {
int N = 50,000; // # of rows
int N_1 = 1000; // # of coefficients in group 1