Working with files best practices and performance

Hi,

I am working on a web portal that is expected to work on PCs and mobile phones. I use penpot SaaS version. I read about best practices when working with files and I took such approach:

  1. One file for a library with all components, mobile and pc combined, because in a lot of cases those are the same, just with different layout. I’m thinking if splitting the library into mobile and web (that’s how I call the pc version even though both are web in fact) would make sense in this case. Let’s call that file Library.
  2. One file for screens with user journeys, let’s call that file Screens.
  3. Screens has multiple pages in it. Each user flow has its own two pages: mobile and web.
  4. This means that the Screens file has twice as many pages as there are user journeys.
  5. Each user journey page has 30-90 screens in it.
  6. Thanks to the fact that I use the Library, whenever I change something in it and then open Screens, and press the update library button, all affected components on all pages get updated.
  7. For each finished page with a user journey I create a prototype.

So far, so good, to me at least. Now the problematic part:

  1. Performance degrades when there are around 40 screens on a page. When I need to do something on the 90-screens-big page, it freezes almost instantly. Good thing is it doesn’t crash, it goes back after few seconds (the bigger a file, the more seconds are needed).
  2. It doesn’t matter whether I try to make changes manually, or via an MCP through an AI agent, the performance is the same.

Now my questions:

  1. Is the approach I took a good practice? Or should I make it all a different way?
  2. Is penpot truly so slow for bigger files? Or not, and I should investigate which parts of my big files may cause the lag?
  3. If penpot doesn’t handle such big files well, how can I further split them (or in any other way address that)?.
  4. Would penpot work smoother had I self-hosted it on a strong machine instead of using it as SaaS?

Regards,

Radek

Hi @radziszcze ! Are you using the new WebGL engine? Performance with large files should work better on this engine.

90 boards/screens per page feels too many if they are complex. Splitting those into different pages should help with performance.

Would penpot work smoother had I self-hosted it on a strong machine instead of using it as SaaS?

About that question, the main driver of performance in Penpot is your own client machine, since a lot of the processing is done in the frontend (plus rendering). So self-hosting would not improve in your case of performance with files with many boards in the same page.

PS: The WebGL rendering is still en beta and we’re working actively in improving it. If you have a file that is giving you problems, please consider opening a bug and attaching the file, so we can check it. Thanks!

2 Likes

@radziszcze I’d echo what @ladybenko says here, and also add that 90 screens on a page can make it hard for collaborators (or even yourself!) to navigate the canvas too.

Unless you need to have all these boards on the same page for prototyping flows, I would generally split them into as many pages as possible. (If you do need every screen for a prototype flow, then fair enough!) Performance would benefit, but also it makes for cleaner file organisation.

Thank you for the answer.

I use WebGL rendering, but exactly as I thought, having 90 files on a page is too many.

So it’s a decision for me now how to split each user journey into subjourneys I guess.

1 Like

I will see if splitting flows into parts will affect prototypes.

1 Like