Skip to content

bottleneck on Mappings.encode_expr #601

Description

@redianthus

It is taking 16% of the whole execution time on Test-Comp.

We discussed this a little bit with @filipeom and there are various fixes:

  1. Add a cache to avoid recomputing the representation all the time.
  2. Maybe we could make this cache weak to avoid using too much space (that is, when an expression is not used anymore, the entry in the cache should be garbage collected). I'm afraid this is not going to play well with multi-core so maybe we should try this only after trying 1.
  3. Attach the solver representation directly to expression, this is annoying because it requires changing the type of expressions but I'm also afraid it will not work well with smtzilla...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions