3 ms·
BareDOM is a proof of concept, the code is not very clean, but I'm sure you can get the ideas. Since Moon has a specific way of using the DOM, you might be abl
by oever 9y ago
BareDOM is a proof of concept, the code is not very clean, but I'm sure you can get the ideas.
Since Moon has a specific way of using the DOM, you might be able to cut down on the number of array positions per node (currently 8).
- pspeter3 9y agoIs there any documentation on why to use a typed array
- yorwba 9y agoTyped arrays are essentially tightly packed chunks of memory that the GC won't walk. If you know what you're doing, you can use them to both save memory (shaving off the per-object overhead of JS objects) and reduce the time spent on GC collections (but you have to do your own memory management on the typed array). That the typed array contains only objects of a single data type probably also helps the JIT to optimize.