Recent

Author Topic: Too many components and code  (Read 1600 times)

Heinz

  • New Member
  • *
  • Posts: 12
Too many components and code
« on: October 18, 2021, 05:11:41 pm »
If a unit is full of components and so, also full of code it will slow a lot the application?
It is running smooth right now but I'm looking to add a lot of PopUpMenu, each with a different menu.
Which is the right track to avoid slowing down the application with a lot of components / functions / procedures?

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Too many components and code
« Reply #1 on: October 18, 2021, 05:18:34 pm »
If a unit is full of components and so, also full of code it will slow a lot the application?
It is running smooth right now but I'm looking to add a lot of PopUpMenu, each with a different menu.
Which is the right track to avoid slowing down the application with a lot of components / functions / procedures?

That will not slow down unless you start hitting your process memory limits then maybe the swap file in your OS could start interacting more often.

you could run out of memory per process but you will know that while you are DEV your app.

What will slow down things is if you build a lot functions doing simple things where it could be done inline as you code. Function calling has a little overhead to it so it takes a few CPU cycles to prep the call and return from the call.

I wanted to add that having a lot of components that need to stream some properties could cause a little slowness during initial startup because it has to be read from file.

« Last Edit: October 18, 2021, 05:22:00 pm by jamie »
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018