Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the most speed out your program?
#12
(07-02-2024, 07:34 PM)bplus Wrote:
(07-02-2024, 06:45 PM)Pete Wrote:
(07-02-2024, 06:38 PM)a740g Wrote: Compile the final executable with optimizations enabled. That alone should give a 2x - 4x (probably more) performance uplift.
Custom compilation was a method in QuickBASIC, too. For instance if you didn't send anything to the printer, omit the printer subroutine. I still remember the most common optimization switches I used: OSEX. Gee, I wonder how that one got committed to memory? 

Anyway, could you share an example or Wiki link as to how to accomplish this in QB64?

Pete

IDE Menu Options > Compiler Settings


Looks like you need to know some C++


brought to you by know-tube
I wrote a keyboard input routine in C/C++ once many years ago. It was like pulling teeth to get any help on C/C++ forums, as almost every "expert" stated to just use a pre-built key input lib. I finally got just the couple of questions I needed answered, and successfully completed the project. Obviously despite that success, I didn't bother to continue learning about the language. Now, it too seems to be going the way of the dinosaur.

Thanks for the IDE compiler optimization info. I was thinking it might take adding switches while doing a manual compilation. +1 for that, but I'm sorry it cost you losing your recent file list. That should be reported as a probably bug. My recent files are invaluable... Of course the list is just a single line of text that spells out, "Same crap you code all the time, Pete."

Pete
Reply


Messages In This Thread
RE: How to get the most speed out your program? - by Pete - 07-02-2024, 08:16 PM



Users browsing this thread: 12 Guest(s)