tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Tests share one program instead of copying it per test (#316)

`louise test` deep-copied the whole optimised program for every test,
since louise_interp::run took it by value into an Rc. run and
run_limited now take anything that is an Arc<Program>: a Program as
before, or an Arc several runs share. The interpreter never changes its
program, and it is Send and Sync, so runs may share it across threads.

On toki2 (372 tests), the run phase goes from ~23 s to 2.4 s, and
`louise test` from 31 s to 9 s. A test runs eight runs of one program
at once and checks that none keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · 29117b723fce59035aa5335755681a2316054ea5

Parents e0e9974

4 fichiers modifiés, 53 ajouts, 13 suppressions