Re: slow startup on windows
[email protected] Mon, 28 Oct 2024 09:05:43 -0500
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
On 2024-10-28 08:18, John Selverian wrote:
> Results are in:
>
> I couldn’t get your timing method to work so I used:
> std::chrono::high_resolution_clock
>
> I did each 5 times to get a better value:
>
>
> In release mode in Windows (old way, using append()):
>
> Delta t2-t1: 6057143800 nanoseconds
> Delta t2-t1: 6418672700 nanoseconds
> Delta t2-t1: 6489762500 nanoseconds
> Delta t2-t1: 5962310600 nanoseconds
> Delta t2-t1: 5934847700 nanoseconds
>
>
> New way (pre-allocating 100 elements more than the required array size
> and removed any used needed elements afterwards):
>
> Delta t2-t1: 1073119800 nanoseconds
> Delta t2-t1: 1004918400 nanoseconds
> Delta t2-t1: 1026997600 nanoseconds
> Delta t2-t1: 1014355300 nanoseconds
> Delta t2-t1: 1041731000 nanoseconds
>
>
> Basically, I went from 6 seconds to 1 second....a very nice speed-up
> for 2 hr work...
That's a great improvement! You may actually get even more
with the doubling technique, but even as it stands its
already a big win!
-- JVZ
_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users