Hot path on large table rebuilds — every text cell runs through one of these. Switching from 4 chained .replace() calls to a single regex with a lookup map is ~3× faster. At 5000 rows × 4 fields per rebuild, 80k → 20k regex operations. |
||
|---|---|---|
| .. | ||
| app.js | ||
| drop-target.html | ||
| index.html | ||
| styles.css | ||