Efficient way to perform vector dot product

I know otp switch from “something” to using references to identify tables in ets in one of the more recent versions. Maybe that change removed that limitation.