You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Whist debugging I had occasion to try to view the contents of a dynamic array containing 16384 elements. I observed the following.
It took more than a minute to show the elements
The numbering of the array elements was string sequential and not numeric sequential
If the view of the array elements was not closed then each subsequent F11/F10 in the method where the view was requested took a about a minute to complete.
It was no possible to end the program using the run/end instruction (or I didn't wait tong enough) (I kept getting the 'main thread is busy' message
The project could be saved and closed BUT when reopened, if the array view had not been previously closed , then the delays were present again when the code entered the method in which the array view had previously been requested.
Steps to reproduce the behaviour:
Open the 'AoC2021NoLib' project
start execution of main in MainModule using F6
At each break point press F5 to continue
The delay issues should manifest after the second F5
The array being viewed was mKeys in Method Keys in Module cHashD
Expected behaviour
Array elements should be listed in numerical order of the index of the array elements not the string order
The delay to show the array contents of an array with 16k elements is unexpected, based on debugging in VBA and other languages I'd expect a delay of a couple of seconds at most.
The run/end code may need to be revised to avoid the problem of not being able to end a program.
Desktop (please complete the following information):
OS: Windows 11
twinBASIC compiler version Beta Ide 58
Additional context
These issues are not urgent, just a little frustrating.
There should be a slight improvement here in BETA 60 ;)
The remaining short delay now comes from the webpage rendering of the DOM list nodes, similar to the debug console performance from earlier issues. Ideally we need to group the array elements e.g. (0 - 100), (101 - 200) etc so that we can reduce the number of live DOM nodes and make accessing individual elements easier. I'll open another issue for that.
Describe the bug
Whist debugging I had occasion to try to view the contents of a dynamic array containing 16384 elements. I observed the following.
Steps to reproduce the behaviour:
Expected behaviour
Array elements should be listed in numerical order of the index of the array elements not the string order
The delay to show the array contents of an array with 16k elements is unexpected, based on debugging in VBA and other languages I'd expect a delay of a couple of seconds at most.
The run/end code may need to be revised to avoid the problem of not being able to end a program.
Desktop (please complete the following information):
Additional context
These issues are not urgent, just a little frustrating.
twinBasic.zip
The text was updated successfully, but these errors were encountered: