[Lazarus] In windows 10 (64bit) Assigning TFrame.parent to a TForm took 10 more seconds than Windows 7 (64 bit)

Marcos Douglas B. Santos md at delfire.net
Tue Dec 18 17:40:36 CET 2018


On Tue, Dec 18, 2018 at 2:16 PM Dennis via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>
> I am using FPC 3.1.1  + Lazarus 1.9.0 running on windows 10 (64 bit) to generate windows exe of 64 bit.
>
> I logged the timestamps before and after parent assignment in my     constructor TMyFrame.CreateWith(aForm : TForm);
> ....
> MyFrame.Parent := aForm (where aForm is the main application window).
> ......
>
>
> In windows 10 (64 bit)
> 18-12-19 00:06:10.154 Before Set parent( old parent = nil )
> 18-12-19 00:06:23.983 After Set parent
>
> it took 13.9 seconds
>
> In windows 7 (64 bit)
>
> 18-12-19 00:07:45.916 Before Set parent( old parent = nil )
> 18-12-19 00:07:48.939 After Set parent
> it only took 3 seconds.
>
> what could possibly be the cause of the extra 10 seconds in windows 10 ?
>
> The hardware is same. In fact, the windows 7 (64 bit) is a virtualbox running on the windows 10, so it should be slower.

Maybe a simple - but complete - example on code can help.
I've been using "dynamics frames" since WinXP (maybe before) and I
haven't seen any penalty (like 10 seconds) of time among those
versions.

best regards,
Marcos Douglas


More information about the Lazarus mailing list