scratch-vm/src/engine
Michael "Z" Goddard 4e24a3f380
Constant time check if thread is in doneThreads
Remove indexOf tests for thread existence in doneThreads. Maintain a
list of null and thread objects mirroring the index position of threads
that are done in runtime.threads. Filter out null values after
filtering out done threads from runtime.threads.

This has a small side effect that threads that normally became DONE and
were added to doneThreads before being removed or restarted will not be
in doneThreads in this version. Restarted threads (_restartThread) do
not appear in this version but new copies will be in Runtime
this.threads supporting glow and monitor updates. Removed threads
(_removeThread) do not appear in this version if they are removed after
they were seen as DONE by the prior version. Threads removed before
they are seen as DONE do not appear in doneThreads in the prior or this
version.

Threads that are removed before normally becoming DONE do not appear in
doneThreads in either case. Threads that are restarted before the loop
checks if the thread is done do not appear in doneThreads in either
case.
2017-11-03 17:46:50 -04:00
..
adapter.js
blocks.js Prevent imported local variables from being duplicated on the stage. 2017-10-25 11:17:29 -04:00
execute.js Changing parsing of custom procedures for new style 2017-10-06 16:26:19 -04:00
list.js
monitor-record.js
mutation-adapter.js
runtime.js Add hideFromPalette flag for hiding legacy blocks 2017-11-01 11:30:15 -04:00
sequencer.js Constant time check if thread is in doneThreads 2017-11-03 17:46:50 -04:00
target.js
thread.js
variable.js