#1 2017-08-23 11:52:46

dka1
Member
From: Greece
Registered: 2017-07-25
Posts: 28

SysUtils patch

Hi Arnaud,
I like your SysUtils optimized functions but I compile my app with runtime packages and I think
I must recompile also delphi packages if I use it.
Also what I can do If I have third party components with dcu only?

Do you think Is a good alternative to patch delphi functions with yours?

Offline

#2 2017-08-23 12:38:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: SysUtils patch

Yes, packages and main program should have the very same exact units...

If you use mORMot, the most used SysUtils.pas optimized functions are already there (mainly in SynCommons.pas).
But patching is not a good idea with packages.

Honestly, today I would not use Delphi packages for anything but the IDE.
If you want to reduce the executable size, it is premature optimization (if it is for code, it is not worth it, or it is because of resources, link .zip to your executable, or use external .zip).
If you want to have runtime loading of features, use regular dll, which will be stand-alone, and will have their own RTL - and also be compatible with FPC, or other languages.

Offline

#3 2017-08-24 07:51:50

dka1
Member
From: Greece
Registered: 2017-07-25
Posts: 28

Re: SysUtils patch

I want to use SysUtils not only for mORMot.
Use of BPL is for runtime loading of features (as plugin's). I will check DLL approach.

Thank you.

Offline

Board footer

Powered by FluxBB