How do you optimize Windows 10 compiler to achieve maximum performance


  1. Posts : 58
    Windows 10 Pro 64-bit
       #1

    How do you optimize Windows 10 compiler to achieve maximum performance


    I was reading about how in the old days there was c++ that allowed you to optimize Windows code to achieve maximum performance through out Windows (I'm assuming this was mainly for low end systems) it seems like if this is still possible it would have to be something to configure right after a fresh install of Windows or maybe using the system preparation tool.

    I'm asking because I'm experimenting on some older systems that I own.

    Would anyone happen to know how to do this or know what I'm talking about?
      My Computers


  2. Posts : 14,023
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #2

    When working with code one must keep in mind the restrictions in the EULA/End User License Agreement. Attached is the document from my Pro version of Win10. See Section 2.c, should be much the same for the Home/Core version.
    How do you optimize Windows 10 compiler to achieve maximum performance Attached Files
      My Computers


  3. Posts : 58
    Windows 10 Pro 64-bit
    Thread Starter
       #3

    Oops nevermind then thank you Berton
      My Computers


  4. Posts : 31,691
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #4

    Anyway, a pre-requisite for using an optimised C++ compiler is that you start with the source code, and Microsoft aren't going to let you have the Windows 10 source code any time soon....
      My Computers


  5. Posts : 11,247
    Windows / Linux : Arch Linux
       #5

    Bree said:
    Anyway, a pre-requisite for using an optimised C++ compiler is that you start with the source code, and Microsoft aren't going to let you have the Windows 10 source code any time soon....
    Hi there

    @Bree

    @quicksilverstud and others interested:

    I assume that the OP is wanting to consider writing apps for Windows using the standard published interfaces -- nothing wrong with that.

    The Windows "kernel" is proprietary and as others have said you are unlikely to get source code !!!.

    For efficient code though you want to ensure that database calls -- e.g sql etc are written efficiently --e.g use joins where possible rather than a load of single "selects" read / write loads of different database segments, ensure RAM usage is accessed efficiently (I/O buffering can help a load using large block sizes so iI/O read / writes are kept to a minimum) , and try and write your code in decent OO (Object Orientated) format so code blocks and common routines can be used in other applications as well without major new coding - also easier to test and maintain and avoid too many loops etc in the code.

    The other thing to do is to separate the "GUI" bits away from the "application" -- then if you need to add say extra buttons / popups / new windows / proper navigation panes and / or change languages it's simple while the main application doesn't have to be changed at all !!!. I think the technical name for this type of coding is something like "MVC or Model View Controller". Language changes are a doddle since you merely need to have for each element in the GUI a label in the appropriate language. -- Even simpler if you have an indexed table with language element and key --then at run time you dynamically fill the GUI label with the correct text in the desired language--- "SEEMPLES ... "! MS please LEARN - would stop your language being hosed up in the Windows GUI's at times !!!!!!!!!!

    Advantage for example in this MVC approach --say you need a new function for example COPY -- simply add your button for COPY and link to your routine. Now in your main OO routine add the copy class. Testing is a doddle since you can "Dummy" the "Copy" class and test that your COPY button works and navigation is OK - then insert your debugger in the Copy class and off you go. !!!

    Cheers
    jimbo
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:37.
Find Us




Windows 10 Forums