Skip to content

Large compilation time when including a lot of images #2096

Closed

Description

@maucejo

Description

I post this issue after posting a feedback on Typst for writing scientific papers on Discord.

As indicated in the post, I observed that Typst compilation time increases drastically when there are a lot of svg images in the document. In my experiment, to compile a 56 page document with 40 svg files, it took :

  • 75 seconds (compilation from scratch)
  • 63 seconds (incremental compilation)

However, when replacing all the images by boxes, I obtain:

  • 13 seconds (compilation from scratch)
  • 286 ms (incremental compilation)

I don't know if this issue has already been reported.

I hope that this feddback can help to improve Typst, because I love it !

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Sep 9, 2023
  2. laurmaedje commented on Sep 9, 2023

    @laurmaedje
    Member

    Wow, that is indeed really slow. I will try to find out whether caching is not working correctly.

  3. maucejo commented on Sep 9, 2023

    @maucejo
    Author

    Wow, that is indeed really slow. I will try to find out whether caching is not working correctly.

    I can share my document if it can help, but it will be in several weeks, when the paper will be published.

  4. laurmaedje commented on Sep 9, 2023

    @laurmaedje
    Member

    That would be very helpful.

  5. added
    incremental
    svg
    on Sep 9, 2023
  6. LaurenzV commented on Oct 9, 2023

    @LaurenzV
    Collaborator

    Incremental rendering for documents with many SVGs has been improved in a recent update, so I'm gonna close this.

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

    bugincrementalsvg

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions