I’m writing a React application that is parsing a small csv file (26rows x 8 cols) that is shown in a table.

When I select the file to parse everything hangs for a couple of hundred milliseconds. I’ve tried running this multiple times, and some times it’s really quick, and some not so much…

So I check the performance profiler in Firefox to see if I can figure out what is taking so long, and I see this:

Post image

As you can see there are two large holes where seemingly no work is being done. Can someone explain why it behaves like this? Is something else happening that just isn’t showing up in the chart or how can that happen?

Source link

Write A Comment