Skip to content

Share simulator caches #82

@LinqLover

Description

@LinqLover

Since #78, tracing and retracing performance has dropped. For small expressions, up to 40% of the time account for TDBMemorySimulator>>#initializeAllPrimitives. Maintain shared caches to improve the situation.

Notes:

  • Profile first, e.g.:
    memory := TDBMemory new.
    [[10000 timesRepeat: [(TDBRangeRetracingSimulator forMemory: memory atTimes: (1 to: 3)) evaluate: [thisContext 
    tdbRetracingTimeIndex +1]]] timeProfile] fork
  • TDBMemorySimulator: introduce PrimitiveHandlers cache that maps set of requirements values (shouldIsolate etc.) to dictionary of handler blocks that take aSimulator as their first argument
  • Build something similar for pragmaPrimitives
  • Consider caching capabilityPragmas in SimulationStudio

Metadata

Metadata

Assignees

No one assigned

    Labels

    developmentConcerns internal quality (tests, performance, automation, ...)engineeringTechnical change to the machinery

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions