marc_256 wrote:
will there be a significant difference in time when I rewrite my program in ASM ?
Yes, rewriting to asm takes a lot of time.
More seriously, your question is like asking how long is a piece of string. It really boils down to how well your code is written, and what it does. If you have great code, converting to asm will only give you a 2x or maybe 4x speed boost. There are some things that pb is very slow at, such as strings, but the libraries are compiled in C by Fred, and simple math type calculations will not be much slower than C. If you are passing a lot of data through function calls, make sure you are using pointers if possible rather than lots of parameters.
What I recommend is you run your program using the resource monitor; it is a powerful tool. You can see which functions are called the most often, then optimize those. I think you can also see how much time is spent in a function. It's been a while since I have used it, but when I needed it, it was awesome.
This is based on the assumption that you aren't wanting to share code for us to critique, since you did not already post it.