Buffer optimization using typed array views

thanks bchevalier!