tgvejs icon indicating copy to clipboard operation
tgvejs copied to clipboard

Parse data only once

Open layik opened this issue 2 years ago • 1 comments

The TGVE does some heavy processing. Currently various components do parsing during interactions by user. All this can be done by some preprocessing/parsing of the data. All subsequent interactions should be drawn from such preprocessing for performance boost.

layik avatar Jun 15 '22 10:06 layik

Two ways of making sure this happens:

  1. central: function to parse data once: drawback here is unnecessary processing
  2. react: let react handle components that parse the data: above draw back is taken care of, only when needed processing is done by various components.

see https://github.com/tgve/tgvejs/commit/57bfddac21ec33adce03fc5178e4422ad56ef3e3

layik avatar Oct 14 '22 11:10 layik