Skip to content

String serialization for errors very costly #2672

@vchuravy

Description

@vchuravy

I was looking at SpeedyWeather/SpeedyWeather.jl#876 today and during a 25min/1533s compile time (before I terminated the process, roughly 50% of the time was spent in julia_error and more precisely the string call to serialize the IR.

Ideas:

  • Avoid string serialization and instead use bitcode (and only stringify on the other side)
  • Memoize the string, it might be simply the case that for multiple possible errors we are serializing the same module multiple times.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions