Inicio lento aplicacion Fivewin 32 bits en Windows 11

Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby quim » Sat May 11, 2024 7:18 am

Saludos foro

Recientemente he migrado mi entorno de desarrollo Fivewin a una nueva máquina con Windows 11 pro (i9, 16Gb RAM, 1Tb SSD)

Ahora la compilación de mi ERP (>150.000 líneas de código) aunque no sea incremental, vuela, es instantánea (entre 1 y 5 segundos)

El problema viene con la primera ejecución del exe, puede tardar hasta 30 segundos en iniciar, lo que desespera cuando se realiza el típico prueba/error

He deshabilitado BitLocker (no sabia que mi PC venía cifrado por defecto) ya que leí que el rendimiento en SSD puede bajar hasta un 45 %

Lógicamente también he probado de desactivar Firewall o autorizar la aplicacion, desactivar Windows defender (no dispongo de otro antivirus), etc

Todo con el mismo resultado, la primera ejecución muy lenta. A partir de la segunda ejecución, el programa arranca de forma instantánea

Tengo entendido que las apps de 32 bits se ejecutan en el subsistema WOW64 que es el emulador x86 que permite que las aplicaciones basadas en
Windows de 32 bits se ejecuten en Windows de 64 bits, por lo que no sé si el problema viene de aquí
https://learn.microsoft.com/es-es/windows/win32/winprog64/running-32-bit-applications

Os ha pasado algo parecido ?

Gracias !
quim
 
Posts: 42
Joined: Mon Apr 11, 2011 6:22 pm

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby Antonio Linares » Sat May 11, 2024 7:22 am

Quim,

Has probado a construirla en 64 bits y ver si hay diferencias ? :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby quim » Sat May 11, 2024 7:56 am

Gracias Antonio

Tengo una 'deuda tecnológica' importante con esta aplicación y no puedo pasarla a 64 bits, ya me gustaría

Lo curioso es que hasta este momento, con el mismo desarrollo en una máquina 'menor' (Windows 10, i3, 8Gb RAM, 500Gb HDD )
la compilación era mucho más lenta, pero la primera ejecución instantánea
También el Windows 10 es 64

He probado desde distintas shells : cmd, cmd (administrador), ConEmu( la que utilizo), PowerShell,... con el mismo resultado
quim
 
Posts: 42
Joined: Mon Apr 11, 2011 6:22 pm

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby acuellar » Sat May 11, 2024 12:28 pm

Estimado Quim

En Control de Aplicaciones y Navegador

Desactivar -Control inteligente de Aplicaciones

Espero te ayude
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1644
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby Rick Lipkin » Sat May 11, 2024 1:15 pm

I use a professional .EXE shrinker ... that makes a big difference in execution time .. the smaller the .EXE, the quicker the program loads not only on a single machine but especially on a network where the .exe is on a common folder. The Shrinker is called Aspack .. and an additional benefit is that your .exe once shrinked makes it impossible for anyone to use a hex edit to look at your .exe which could revel your source code .. here is the link ..

http://www.aspack.com/downloads.html

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby quim » Sat May 11, 2024 1:29 pm

acuellar wrote:
En Control de Aplicaciones y Navegador

Desactivar -Control inteligente de Aplicaciones

Espero te ayude


Como se suele decir ... ' mano de santo '
Después de la advertencia de que no podria volver al modo 'inteligente' si lo desactivaba sin instalar de nuevo Windows ... funciona perfecto
La verdad es que se pierde más el tiempo en desactivar funcionalidades de Windows 11 que ventajas pueda ofrecer

Gracias por la ayuda !
quim
 
Posts: 42
Joined: Mon Apr 11, 2011 6:22 pm

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby quim » Sat May 11, 2024 1:32 pm

Rick Lipkin wrote:I use a professional .EXE shrinker ... that makes a big difference in execution time .. the smaller the .EXE, the quicker the program loads not only on a single machine but especially on a network where the .exe is on a common folder. The Shrinker is called Aspack .. and an additional benefit is that your .exe once shrinked makes it impossible for anyone to use a hex edit to look at your .exe which could revel your source code .. here is the link ..

http://www.aspack.com/downloads.html

Thanks
Rick Lipkin


Thank you very much Rick for the recommendation, really an option to consider.
The easy solution has been Adhemar

Regards
quim
 
Posts: 42
Joined: Mon Apr 11, 2011 6:22 pm

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby Enrico Maria Giordano » Sat May 11, 2024 2:46 pm

Rick Lipkin wrote:I use a professional .EXE shrinker ... that makes a big difference in execution time .. the smaller the .EXE, the quicker the program loads not only on a single machine but especially on a network where the .exe is on a common folder. The Shrinker is called Aspack .. and an additional benefit is that your .exe once shrinked makes it impossible for anyone to use a hex edit to look at your .exe which could revel your source code .. here is the link ..

http://www.aspack.com/downloads.html

Thanks
Rick Lipkin


Last Aspack update is on 2018. Time to switch to UPX, last update 2 days ago and best EXE compression (using --lzma switch).
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby karinha » Sat May 11, 2024 3:12 pm

Good afternoon Enrico, does this work in your version of UPX.exe?

Code: Select all  Expand view  RUN

C:\UPX\UPX.EXE --lzma --ultra --brute FOTOSPRO.EXE
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby Enrico Maria Giordano » Sat May 11, 2024 3:14 pm

I didn't understand your question. Can you be more specific, please?
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby karinha » Sat May 11, 2024 3:30 pm

Enrico, is this correct? And the version, is it 4.2.4 of UPX.exe?

Code: Select all  Expand view  RUN

C:\UPX4\UPX.EXE -9 --lzma FOTOSPRO.EXE
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby karinha » Sat May 11, 2024 3:31 pm

Enrico Maria Giordano wrote:I didn't understand your question. Can you be more specific, please?


How do you compress your executable?

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby Enrico Maria Giordano » Sat May 11, 2024 4:42 pm

karinha wrote:Enrico, is this correct? And the version, is it 4.2.4 of UPX.exe?

Code: Select all  Expand view  RUN

C:\UPX4\UPX.EXE -9 --lzma FOTOSPRO.EXE
 


Regards, saludos.


Yes, latest version is 4.2.4:

https://github.com/upx/upx/releases/tag/v4.2.4

The correct syntax (I'm using) is:

Code: Select all  Expand view  RUN
C:\UPX4\UPX.EXE --lzma FOTOSPRO.EXE
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby karinha » Sat May 11, 2024 5:31 pm

Thank you Enrico. Perfect.

https://upx.github.io/

Regards, saludso.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Inicio lento aplicacion Fivewin 32 bits en Windows 11

Postby karinha » Sun May 12, 2024 11:24 am

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 26 guests