ENH: sparse: some performance microtuning in dok_matrix