aojwang/madlib — comment on commit fa49346054c7ef9e6c752b8798b558c11358d7ab
File: methods/svec/src/pg_gp/operators.c line 833
By cwelton:

What I find unfortunate here is that we end up allocating memory for the result three times.
- This allocation here
- Another allocation for flota8arr_to_sdata
- Another allocation + memcpy for svec_from_sparsedata

Given the API for the sparse vector code I don't see a good alternative right now, but its definitely something we should try to address.