Removing the typed arrays
Its not clear that we will be able to leverage the Float64Array. It may also be that the overhead of constructing these small arrays negates any benefit of faster access. And for all coordinate arrays, we'll need arrays that grow/shrink.
This commit is contained in:
@@ -20,9 +20,8 @@ describe('ol.geom.Point', function() {
|
||||
|
||||
describe('#coordinates', function() {
|
||||
|
||||
it('is a Float64Array', function() {
|
||||
it('is an array', function() {
|
||||
var point = new ol.geom.Point([10, 20]);
|
||||
expect(point.coordinates).toBeA(Float64Array);
|
||||
|
||||
expect(point.coordinates.length).toBe(2);
|
||||
expect(point.coordinates[0]).toBe(10);
|
||||
|
||||
Reference in New Issue
Block a user