Today at work I ran that example switch code on an older 32bit machine running
at 1.6G. This really showed up the difference.
The 'packed' version ran pretty consistently at 10 seconds.
The 'sparse' one started out slightly slower, but when reading the last case
entry was approaching twice as long at 18 seconds.
Will J Godfrey
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
Yoshimi source code is available from either:
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx