Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

64KB heap size limit? Seriously?

 

const y = new Float32Array( 10000 );
console.log( x[0] );

The code above works. This code, however...

const y = new Float32Array( 10000 );
const y = new Float32Array( 10000 );
console.log( x[0], y[0] );

 ...gives JerryScript "out of memory" exception.

@JonFitbit JerryScript can support larger heap size, up to 512K in the same configuration with compressed pointers as you have in FitbitOS. Don't you think that 64K heap limit is too small? I just hit the limit in a real application, and this is the showstopper. Can it be increased? 

 

 

Best Answer
22 REPLIES 22

I'm happy to announce that Versa 2 has 128K memory now :). Thanks to the recent SDK update.

Best Answer
0 Votes

Do you think this will be the case for the new Versa 3 and Sense?

Best Answer
0 Votes
import { memory } from "system";
console.log("JS memory: " + memory.js.used + "/" + memory.js.total);

JS memory: 10256/131064

 

Yes, Sense and versa 3 have 128KB of Heap size!

Best Answer
0 Votes