Proyecto

General

Perfil

Acciones

Mejora #752

cerrada

Implement evaluation cache

Añadido por Federico Vera hace más de 5 años. Actualizado hace más de 5 años.

Estado:
Resuelto
Prioridad:
Wishlist
Asignado a:
Versión prevista:
Fecha de inicio:
2018-07-10
Fecha fin:
2018-08-01
% Realizado:

100%

Tiempo estimado:
Dificultad:
Tags:

Descripción

As of now, every call to Expression#evaluate() reevaluates the whole expression.
This isn't a problem in and of itself, but it's a common error when using the library and creates an annoying performance hit.

  • Find all scenarios where this could fail
  • If an expression contains non-deterministic results, the value should not be cached
  • Cache should be cleaned if variable changes
  • What happens when using setVariables() with maps?
  • Create tests for expression evaluate

PS: We attempted to fix this with documentation and warnings... but still creates a problem. An internal (at least partial) solution shouldn't be hard to accomplish... I think...

Acciones

Exportar a: Atom PDF

Volver al inicio