implement array-element-type as a table lookup
commitc841dc758f72be599ac50363b82f8716e4a26346
authorChristophe Rhodes <csr21@cantab.net>
Sun, 20 Dec 2015 11:06:06 +0000 (20 11:06 +0000)
committerChristophe Rhodes <csr21@cantab.net>
Thu, 24 Dec 2015 22:34:17 +0000 (24 22:34 +0000)
treecef0dc24a89e786bb6e528905ef0bc916b2f73c7
parentbca07454ab2933219f3a00a572a4d7cd2f82e189
implement array-element-type as a table lookup

on my x86-64 laptop, this has the annoying effect of slowing down
array-element-type on base-strings by about a factor of 2.  On the other
hand, it is now a constant-time lookup, and array-element-type on
simple-vectors is sped up by about a factor of 5, so that's probably a
net win.
src/code/array.lisp