Click here to Skip to main content
15,844,673 members

Comments by TheRealSteveJudge (Top 200 by date)

TheRealSteveJudge 7-Feb-24 5:29am View    
I did what you asked for:
Windows 10, VS2022, .NET8, 64 bit, 10 runs

byte array size 1GB filled with random data

DEBUG

Run 1
While Loop: Ellapsed time 2688 ms.
Array.Reverse: Ellapsed time 575 ms.
Run 2
While Loop: Ellapsed time 2774 ms.
Array.Reverse: Ellapsed time 642 ms.
Run 3
While Loop: Ellapsed time 2574 ms.
Array.Reverse: Ellapsed time 609 ms.
Run 4
While Loop: Ellapsed time 2552 ms.
Array.Reverse: Ellapsed time 609 ms.
Run 5
While Loop: Ellapsed time 2553 ms.
Array.Reverse: Ellapsed time 613 ms.
Run 6
While Loop: Ellapsed time 2545 ms.
Array.Reverse: Ellapsed time 295 ms.
Run 7
While Loop: Ellapsed time 2557 ms.
Array.Reverse: Ellapsed time 287 ms.
Run 8
While Loop: Ellapsed time 2544 ms.
Array.Reverse: Ellapsed time 284 ms.
Run 9
While Loop: Ellapsed time 2623 ms.
Array.Reverse: Ellapsed time 656 ms.
Run 10
While Loop: Ellapsed time 2702 ms.
Array.Reverse: Ellapsed time 637 ms.

RELEASE

Run 1
While Loop: Ellapsed time 546 ms.
Array.Reverse: Ellapsed time 554 ms.
Run 2
While Loop: Ellapsed time 572 ms.
Array.Reverse: Ellapsed time 616 ms.
Run 3
While Loop: Ellapsed time 652 ms.
Array.Reverse: Ellapsed time 597 ms.
Run 4
While Loop: Ellapsed time 622 ms.
Array.Reverse: Ellapsed time 600 ms.
Run 5
While Loop: Ellapsed time 615 ms.
Array.Reverse: Ellapsed time 595 ms.
Run 6
While Loop: Ellapsed time 617 ms.
Array.Reverse: Ellapsed time 294 ms.
Run 7
While Loop: Ellapsed time 588 ms.
Array.Reverse: Ellapsed time 289 ms.
Run 8
While Loop: Ellapsed time 539 ms.
Array.Reverse: Ellapsed time 287 ms.
Run 9
While Loop: Ellapsed time 536 ms.
Array.Reverse: Ellapsed time 285 ms.
Run 10
While Loop: Ellapsed time 548 ms.
Array.Reverse: Ellapsed time 306 ms.
TheRealSteveJudge 6-Feb-24 1:11am View    
Thank you for the hint. I will give it a try!
TheRealSteveJudge 14-Apr-23 7:44am View    
What is the exact value of the data you would like to convert to Int64?
TheRealSteveJudge 28-Feb-23 8:24am View    
OK. You're welcome!
TheRealSteveJudge 14-Feb-23 8:02am View    
Maybe AI can write the program for you? https://openai.com/blog/chatgpt/