# Poor performance when calling functions

**URL:** <https://community.thunkable.com/t/poor-performance-when-calling-functions/590574>\
**Category:** Feedback\
**Created:** [May 27, 2020, 2:17pm UTC](https://community.thunkable.com/t/poor-performance-when-calling-functions/590574 "2020-05-27T14:17:35Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [May 27, 2020, 2:17pm UTC](https://community.thunkable.com/t/poor-performance-when-calling-functions/590574/1 "2020-05-27T14:17:35Z")

</div>

As you know, in the new updates to Thunkable X, blocks have become faster. However, when I started the custom list, I didn’t see any increase in speed. How can this be, if the creation of components has increased 10 times?

Look at the example below. An empty “do something” function is called in it. Execution time = 0.5 seconds

 ![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f475c0083b19f289e7ffb06eeb99ce8b2034bfaf.png)

The problem is that the code above is significantly slower than the code below, which uses a lot of blocks. The operating time is 0.048 seconds.

 ![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6fda81c6f441d0ca31bf7216cc9e969a3a130011.png)

If all the blocks in the red frame are placed in a separate function, the execution time will be 0.74 seconds.

In other words, using the function caused the execution speed to drop by about 10-15 times! This is a very large drop in performance.

[https://x.thunkable.com/projects/5d90cb81aab4c26ef753f324/project/properties/designer/](https://x.thunkable.com/projects/5d90cb81aab4c26ef753f324/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:** [June 30, 2020, 9:35am UTC](https://community.thunkable.com/t/poor-performance-when-calling-functions/590574/2 "2020-06-30T09:35:27Z")

</div>

Thanks for the feedback @actech - have you filled a GitHub issue about this?

---

<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:** [July 2, 2020, 5:57pm UTC](https://community.thunkable.com/t/poor-performance-when-calling-functions/590574/3 "2020-07-02T17:57:59Z")

</div>

Domhnall, I didn’t report this because I’m not sure my messages can be taken seriously. The fact is that I consider Thunkable X from the position of a programmer who may have special requests - reliability, performance of the interpreter engine, dynamics, functionality, etc. Perhaps my vision of Thunkable X is very different from how developers see It, for this reason I decided not to give any more suggestions and messages, so as not to confuse developers.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:25am UTC](https://community.thunkable.com/t/poor-performance-when-calling-functions/590574/4 "2024-11-08T11:25:10Z")

</div>


