Reimplementation of Pijul in C, for education, fun and absolutely no profit

#7 changestore: allow dynamically expanding the list of loaded changes

Closed on July 26, 2023
laumann on July 13, 2023

There’s a fixed limit of 32 entries set in the one call to changestoreinit(). Make it so loading a new change will expand the list as necessary if it’s full.

laumann added a change on July 20, 2023
HMFIDMVZCIROCMAWQWVWWUULOW3ZHKMLRMOPAE4QUDLVR437O2OAC
laumann on July 20, 2023

Before and after

valgrind --leak-check=full build/ani change YM2LC6QP2D7TK3JUKOXWUWTQEGMCEGQDGPTOZPWC3BRDFNRKSZWQC

before:

==14997==   total heap usage: 1,204 allocs, 1,204 frees, 149,446,210 bytes allocated

after:

==15877==   total heap usage: 326 allocs, 326 frees, 50,066,715 bytes allocated
laumann added a change on July 26, 2023
changestore: load changes on demand created on July 20, 2023
QSQNGA5KZ4BVWE4FUJUMOP6SJRIXAC2PYU6JSRG5KXWLYWZZMAJQC
main
laumann on July 26, 2023

applied to main

laumann closed this discussion on July 26, 2023