Bytes computation Javascript -
yesterday friend complaining how in bash couldn't sort list of elements because method calling ended return statement.
eventually return
instruction in bash returns defined amount of bytes, , reason of concerns.
my question is:
how work memory allocation in javascript? how know how many bytes commands void 0
or undefined
are?
that's pretty low level , know js not supposed these kind of tasks, yet curious on best way approach research.
you don't allocate memory in js - environment you. cannot micro-manage it, , absolutely not matter how many bytes value takes. if needed know, you'll have @ implementation of engine using; , exact size of particular values in application can take heap snapshot profiler.
Comments
Post a Comment