SamCoVT / TaliForth2

A Subroutine Threaded Code (STC) ANSI-like Forth for the 65c02
Other
29 stars 7 forks source link

refactor xt_spaces #92

Closed patricksurry closed 5 months ago

patricksurry commented 6 months ago

i refactored this after noticing the _lots_of_spaces specialization wasn't exercised by tests (see #91). this is smaller and faster and all covered by the tests.

size:
before: | SPACES | `spaces` | ANS core | 59 | **auto** |
after:  | SPACES | `spaces` | ANS core | 25 | **auto** |

speed (cycles) for various n spaces:

n       after       before

42      1263        1466
442     12871       13768
-1      33          131
0       47          131