id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,work_issues,upstream,reviewer,author,merged,dependencies,stopgaps
11657,the vector(...) function is extremely slow,was,"jason, was","I was shocked by this:
{{{

sage: timeit('vector(ZZ,100)')
625 loops, best of 3: 302 µs per loop
sage: timeit('(ZZ^100)(0)')
625 loops, best of 3: 24.9 µs per loop
sage: timeit('(ZZ^100).zero_vector()')
625 loops, best of 3: 21.8 µs per loop
}}}

I didn't realize that the special case of the zero vector is incredibly slow for the {{{vector}}} function.  This needs to be fixed. 

'''Apply''':
  1.  [attachment:trac_11657-rewrite.patch]
  1.  [attachment:trac_11657-zero-vector-edits.patch]",defect,closed,minor,sage-4.7.2,linear algebra,fixed,sd32,,,N/A,"Rob Beezer, William Stein","William Stein, Rob Beezer",sage-4.7.2.alpha3,,
