From 359d88c5f4fcaa0f5cd505fa0ac2eb473648f1a6 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 9 Sep 2026 16:34:15 -0400 Subject: parallelise: show_abstraction & ocda_db as the rest Fix issue with consistency (flags run serial & parallel inconsistenly). Both write one file per document per language and share no handle, so they belong on the list with html, epub, text and sqlite_discrete. The guard above the list still takes out --pod, --pod2, --source and the shared sqlite db actions before it is reached, so those stay serial as they were; checked. However measurement tests show parallel turn out to result in a processing slowdown, on the (35) sample markup documents, run on multiple passes: run on 16 cores a slow down of about 20% for eleven times the cpu! --text 4.83-5.10 s wall 48-52 s user --text --serial 3.94-4.05 s wall 4.2-4.4 s user will make serial run the default. (assisted by Claude-Code) --- src/sisudoc/spine.d | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/sisudoc/spine.d b/src/sisudoc/spine.d index 2862303..ed55298 100644 --- a/src/sisudoc/spine.d +++ b/src/sisudoc/spine.d @@ -831,7 +831,16 @@ string program_name = "spine"; _is = false; } } else if ( + /+ ↓ show_abstraction and ocda_db belong here for the same reason as + the rest: each writes one file per document per language and + shares no handle. --pod2 and --source, which also set + show_abstraction, and the shared sqlite db actions are taken out + by the guard above before this list is reached, so listing them + here does not parallelise those + +/ opts["abstraction"] + || show_abstraction + || ocda_db || concordance || curate || html -- cgit v1.2.3