export function arrayToString( array ) {

	let str = '';
	for ( let i = 0, l = array.length; i < l; i ++ ) {

		str += String.fromCharCode( array[ i ] );

	}

	return str;

}

export function arrayToString( array ) {

	const utf8decoder = new TextDecoder();
	return utf8decoder.decode( array );

}

Improve the performance of attribute parsing for .b3dm
Improve the performance of attribute parsing for .b3dm

The previous implementation would use a lot of string allocations which
would cause the garbage collector to kick in often and that was a major
fit for performance.

This patch fixes the issue by using the built-in TextDecoder class, but
it might break compatibility with old browsers (e.g. Internet Explorer).
