angular-ui/ui-grid

[Performance Increase] Precompile and cache compiled filter templates

Open

#6.973 aberto em 9 de mai. de 2019

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (2.496 forks)batch import
grid-corehelp wantedseverity: performance

Métricas do repositório

Stars
 (5.395 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

instead of $compiling as dom nodes are created the templates (especially built in ones) should be compiled before hand that way it saves on processing and increases performance.

When the user adds their own template in place of a built in one, it should immediately compile and cache the compiled template by using the src directory as the key to map the compiled template.

This should increase the performance of the grid slightly.

---EDIT--- after further looking at the code i can see that precompiled templates are a thing in most of the application. However the reason i initially posted this was because filters are not being pre-compiled

Guia do colaborador