CodingTrain / CodingTrain/Suggestion-Box
Typed Arrays
- Dominant language
- No language data
- Stars
- 570
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Hi Daniel,
I suggest creating a video tutorial / series on writing JS code that focuses on execution efficiency rather than readability or convenience.
For example, many of your past coding challenges implement large static arrays of numeric values using built-in JS untyped arrays (i.e. var myArray = [];). One way to increase performance for such arrays is to use Typed Arrays, utilizing Array Buffers and Views. A tutorial could be built around modifying an existing project to make use of these typed arrays, the math involved in calculating indexes for looping, and a demonstration of the increased performance.
As a sample, I have re-written coding challenge 13 (Reaction Diffusion) using Typed Arrays. The reworked code is available here: https://bitbucket.org/umchoyka/reaction-diffusion/src/master/
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.