Danny-Alexander / terratech-block-list

Web page to format and display mod-exported block properties for TerraTech game.
MIT License
3 stars 0 forks source link

Slow to update, especially showing all rows #38

Open Danny-Alexander opened 5 years ago

Danny-Alexander commented 5 years ago

It can take 3000ms+ on my computer to update when entering a search or changing something.

The Recipe column has significant impact (problem improves when it's not shown).

To Reproduce:

  1. Show the page
  2. Open debug
  3. Select Show All entries
  4. See Redraw took: 3330mS and similar messages in colsole
  5. Type a common letter in search
  6. See page hangs for some time while it's filtering and redrawing

Expected Result

Ideas for improvement

  1. Use a function to get the data adding additional properties containing dynamic display text
  2. Use a Bootstrap or other text entry (with events to do async calculation in background)
  3. Make the update run asynchronously (to not hold up the search entry or other UI)
  4. Test if it's better with DataTables any extensions removed