|
|
|
|
|
by anatoli
3136 days ago
|
|
NODE_ENV=production definitely wasn't set based on some basic testing I did (that's my PR there), which accounts for the atrocious performance. Also, the React component is created on each request instead of just being created once. Unless one's goal is to specifically colour the perception of React, I don't understand that decision alongside the code for Pug which precompiles the template a single time. (Also declaring the map function outside the component and not creating a closure makes for a tiny extra boost.) It's disappointing to see that the article took off to this extent given how misleading and inaccurate it is. |
|