utopia icon indicating copy to clipboard operation
utopia copied to clipboard

Reverting an individual file via the github pane is very slow, and causes UID errors

Open Rheeseyb opened this issue 1 year ago • 1 comments

It looks like the issue is happening in revertGithubFile here: https://github.com/concrete-utopia/utopia/blob/dc960f8fa1a63a7c01b71b50d09e9eb045a92a1b/editor/src/core/shared/github/helpers.ts#L523-L526 This is parsing the entire old version of the project, using the exisiting UIDs: https://github.com/concrete-utopia/utopia/blob/dc960f8fa1a63a7c01b71b50d09e9eb045a92a1b/editor/src/core/shared/parser-projectcontents-utils.ts#L191-L204

Image

Rheeseyb avatar Apr 19 '24 13:04 Rheeseyb

It looks like this problem was indirectly fixed by other work – or we couldn't find it happening again. We'll reopen in case slowness manifests again.

ruggi avatar Apr 30 '24 13:04 ruggi