Editor high memory usage - 14.2 GB (new personal best)

I feel like this isn’t true or else I wouldn’t do it, but I’ll take your word for it.

It is :smiley:

If you’re referencing Parent group’s thing, you can logically just reference whatever Parent group’s Thing is referencing (or whatever THAT is referencing, right up to the original datasource that’s not using Parent group’s thing).

This is true for every case (though will happily be disproven by a counterexample :wink: )

Arbitrary example

└─ Group ProductSection                      (Type: Product)
   ├─ var - Product: Selected Product
   ├─ Text Title
   │  └─ Dynamic text: var - Product's name
   ├─ Image Hero
   │  └─ Dynamic image: var - Product's hero_image
   ├─ Group PriceAndCTA                      (no data source)
   │  ├─ Text Price
   │  │  └─ Dynamic text: var - Product's price:formatted as currency
   │  └─ Button Add to Cart
   │     └─ Workflow action: Add item → var - Product
   ├─ Group Details                          (no data source)
   │  ├─ Text Description
   │  │  └─ Dynamic text: var - Product's description
   │  └─ Group SellerInfo                    (no data source)
   │     ├─ Text Seller Name
   │     │  └─ Dynamic text: var - Product's seller's name
   │     └─ Button View Seller
   │        └─ Navigate to Seller page
   │           └─ Data to send: var - Product's seller
   └─ RepeatingGroup Reviews                 (Type: Review; Data source: var - Product's reviews)
      └─ Cell
         ├─ Text Review Body
         │  └─ Dynamic text: Current cell's Review's body
         └─ Text Reviewer
            └─ Dynamic text: Current cell's Review's author's name

You should have stopped in September of 2024

1 Like

To be clear this isn’t gonna be a huge of client side performance issues in anyone’s apps

Like if you got rid of 10,000 of those references, the performance improvement probably wouldn’t exceed the error bars of however you’re measurning it

But it stands that in aggregate, we want expresisons to be simple (which parent group’s thing is) and use them only where necessary. For maintainability, if not for anything else, as @boston85719 points out

Hey @georgecollier , just curious on your post - are these casuing meaningful impact in how you’re measuring it in the Editor/Client? Or any other golden nuggets you’d like to share?

Also, more related to this post, I’m having to refresh the editor on larger apps that I’m working on - especially post merge.

I 100% believe you, I just remember there was a case where parent groups were necessary in the context of a repeating group but it could be a GPT hallucination.

Likely GPT not knowing all tricks. Inside RG can still reference another group.

I put one group called Selector then inside it I add other group tied to an option set. When parent group option set is listed as hide, it’s not visible, but whenever I need data or reference to the cells actual data I reference the group Selector. Been doing it for years, you’ve probably seen I’ve mentioned it before.

Yeah the only time you can’t access a group is if the the group you want to reference is a child of a repeating group from the place you’re trying to reference; but parent group’s thing doesn’t solve it.

I was referring to my own brain.

Quick update:

  • Using Firefox in private mode has helped.
  • creating a branch seems to be the problem
  • even in Firefox, the memory will increase, it will eat up CPU, and never let go
  • so, yes, now it’s always create branch → duplicate tab → close the previous one

If you mean regular Firefox, try Firefox DEVELOPER

1 Like

@code-escapee - what’s the benefit of Firefox for Developers? I had heard I could unlimit a tab’s Memory usage but couldn’t get it to work.

I don’t think it “unlimits” memory, and I’m not a browser expert (or even close). This is just based on what I see in practice.

I first saw Firefox Developer Edition suggested on the Bubble forum, tried it, and haven’t really gone back. For big, JS-heavy apps like the editor, it just feels faster and more stable. It seems less aggressive about throttling, DevTools interfere less, and Firefox Dev seems to handle memory leaks more gracefully.

One caveat: it’s not perfect. A couple of common editor actions still work better elsewhere for me, like merging branches or copying elements between apps, so I switch (back to Chrome) when needed.

1 Like

Indeed :rofl:

1 Like

So the new update of the editor seems to have cleaned up a few things. First time in months that the editor registers below 1 GB in Firefox.

In Brave, it’s hovering between 1.5 and 2 GB.

1 Like

Ooops, I take that back.