# How can I optimize performance in large projects (2000+ blocks)

**URL:** <https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012>\
**Category:** Questions about Thunkable X\
**Created:** [February 12, 2020, 10:18am UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012 "2020-02-12T10:18:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 10:18am UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/1 "2020-02-12T10:18:56Z")

</div>

Hi Thunkers !,  
In general, how to avoid hanging issues when app becomes more complex ( more than 2000+ blocks ! ) ?  
as I’m making a very complex app and I don’t want to struggle these problems specially with the not so powerful mobile devices !  
so what can I take in consideration when building an app like that ?  
Thanks Thunkable for your great efforts !

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [February 12, 2020, 10:33am UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/2 "2020-02-12T10:33:31Z")

</div>

Hi, @davidsobhysabetb! 👋

To avoid hanging issues, just reduce the number of blocks. This can be easily done through “Any Components.”

You could post your blocks here, and we’ll be glad to help you reduce them.

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 10:59am UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/3 "2020-02-12T10:59:00Z")

</div>

Thanks for your reply @kartik14 !  
So, is that the only thing to have in consideration ?  
blocks number is the responsible of app performance ? so what if using any components didn’t reduce the number of blocks too much let’s say the 2000 blocks became 1500, is then the large blocks number still a problem ?

> Blockquote You could post your blocks here, and we’ll be glad to help you reduce them.

actually I didn’t start building this app yet I need to know if it would be possible with at least nice performance with that number of blocks possible or not !  
Thanks !

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [February 12, 2020, 11:49am UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/4 "2020-02-12T11:49:36Z")

</div>

Are you satisfied with the speed of this project with 1200 blocks?

[https://x.thunkable.com/projects/5d9310fcdf0a8f208bd2bb11/project/properties/designer/](https://x.thunkable.com/projects/5d9310fcdf0a8f208bd2bb11/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 12, 2020, 11:59am UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/5 "2020-02-12T11:59:30Z")

</div>

> [@davidsobhysabetb](#):
>
> how to avoid hanging issues when app becomes more complex

Hey @davidsobhysabetb - just wondering if you are having issues using Thunkable to create this app, or if the app itself is crashing on your users devices? It’s a little unclear because you also mention:

> [@davidsobhysabetb](#):
>
> actually I didn’t start building this app yet

…so, I’m not sure what has prompted you to ask this question?

We recently release an update that massively improves the performance of the blocks editor for larger projects.

Thanks.

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 12:10pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/6 "2020-02-12T12:10:35Z")

</div>

Thanks a lot for your reply @actech I have a crash issue in your app using Thunkable live iPhone XS Max but working great and smoothly in iPhone 5s

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 12:30pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/7 "2020-02-12T12:30:14Z")

</div>

Hi @domhnallohanlon , Thanks a lot for replying !  
I’m building an app ( complex app ) and by now everything’s OK , but my app now 3670 blocks in total like in average 800 blocks per page and I noticed that performance get slower when adding more features to my app, this issue more happens with android devices and not very high IOS devices like ( iPhone 5s )  
performance get slower but i think it’s acceptable that’s why I’m asking how to manage my app to deal with this large number of blocks without issues … Here’s the project I’m building … try it  
[https://x.thunkable.com/projects/5e30234c4cf411ea25aff47c](https://x.thunkable.com/projects/5e30234c4cf411ea25aff47c)  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [February 12, 2020, 2:10pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/8 "2020-02-12T14:10:12Z")

</div>

Hey @davidsobhysabetb, my big project currently has about 4000 blocks. I use an iPhone 11. I’ve seen it ran on older androids and it’s roughly the same speed as mine.

I have used a lot of functions and the “any component” blocks

Start by looking for code that repeats itself! Then, figure out how to not have to make it repeat over and over

I think my app slows down the most what I’m trying to paint something onto the screen after the screen has already been displayed for example. In one of my screens I have 25 buttons five rows with five buttons and each and any given time I want one of each of those five buttons colored yellow and the rest green depending on what settings the user has. When I ask the app to automatically paint the buttons upon loading the screen or after making changes the app slows down only while coloring the buttons, however if I don’t have any green painting going on then there’s no issue.

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 2:18pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/9 "2020-02-12T14:18:32Z")

</div>

Hi @jared, Thanks for your reply  
May I try your app on my iPhone 5s to compare the performances of the two apps ?  
Thanks .

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 12, 2020, 2:29pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/10 "2020-02-12T14:29:14Z")

</div>

> [@davidsobhysabetb](#):
>
> I noticed that performance get slower when adding more features to my app

Interesting, thanks for flagging this. Can you tell us a bit more about the features that you think might be causing the lag? This will help us to investigate further.

When you say “features” does this mean adding in new UI components? are you doing async stuff like working with APIs? or is it simply a matter of having more blocks/functions in your project? Please bear in mind that using blocks like the `wait` block will cause your app to slow down, as this is what they’re designed to do!

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 2:39pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/11 "2020-02-12T14:39:07Z")

</div>

Hi, @domhnallohanlon,  
Yes I mean using more blocks and more pages and yes I’m using wait block but time is only 1.5 sec max at specific condition only .

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 12, 2020, 2:47pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/12 "2020-02-12T14:47:58Z")

</div>

> [@davidsobhysabetb](#):
>
> I’m using wait block but time is only 1.5 sec max at specific condition only .

Does you app happen to “lag” a bit when this condition is met?

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 3:08pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/13 "2020-02-12T15:08:12Z")

</div>

App hanging even with pages with no wait functions ( iPhone 5s )  
and great performance in ( iPhone XS Max ) @domhnallohanlon  
Thanks for you support .

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 12, 2020, 3:31pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/14 "2020-02-12T15:31:24Z")

</div>

> [@davidsobhysabetb](#):
>
> Thanks for you support .

No problem at all - just want to make sure that everyone has the best possible experience with Thunkable.

Probably should have asked this sooner, but is this lag when using Thunkable Live or are you installing your apps directly on to your devices?

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 3:32pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/15 "2020-02-12T15:32:23Z")

</div>

I tried both with the same result @domhnallohanlon

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 12, 2020, 5:44pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/16 "2020-02-12T17:44:31Z")

</div>

Might just be a hardware issue @davidsobhysabetb?

I actually locked myself out of my 5s, but if you DM me your project link I’ll see if I can get it up and running again tomorrow?

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 5:55pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/17 "2020-02-12T17:55:04Z")

</div>

I don’t think it’s a hardware issue as I tested my app on medium android mobile and there’s a little lag too .  
that’s my project  
[https://x.thunkable.com/projects/5e30234c4cf411ea25aff47c](https://x.thunkable.com/projects/5e30234c4cf411ea25aff47c)  
@domhnallohanlon

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 12, 2020, 6:48pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/18 "2020-02-12T18:48:44Z")

</div>

> [@davidsobhysabetb](#):
>
> I don’t think it’s a hardware issue

ok, last question - what version of iOS are you running on your 5s?

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 12, 2020, 6:50pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/19 "2020-02-12T18:50:12Z")

</div>

12.4.5 @domhnallohanlon

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 13, 2020, 12:49pm UTC](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012/20 "2020-02-13T12:49:11Z")

</div>

I’m using a bottom tab navigator and it has 5 pages, but I’m also having 3 pages which doesn’t belong to any tab navigator … maybe that’s what making the lag ? @domhnallohanlon

[Next page](https://community.thunkable.com/t/how-can-i-optimize-performance-in-large-projects-2000-blocks/460012.md?page=2)
