Skip to content

Conversation

@Nabihamasroor
Copy link

Fixes #42

Changes

  • Added TemplateValidator class for validating templates before processing
  • Implemented caching system using Map to store compiled code and avoid recompilation
  • Modified init() and trigger() methods to accept optional compiledTemplate parameter
  • Added cache key generation based on template content hash
    -Implemented cache management with invalidateCache() and clearAllCaches() methods
  • Updated tests to validate caching behavior and performance improvements

Features

  • Separate Compile Step: Compile TypeScript once instead of on every trigger/init call
  • Performance Monitoring: Cache hit/miss statistics for optimization tracking

Signed-off-by: nabiha <nmasroor@forthlogic.com>
…rocessor

Signed-off-by: nabiha <nmasroor@forthlogic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

precompiled trigger support

1 participant