tgvejs
tgvejs copied to clipboard
Parse data only once
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.
Two ways of making sure this happens:
- central: function to parse data once: drawback here is unnecessary processing
- 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