unfoldingWord / gateway-edit

Book Package harmonized view.
https://gatewayedit.com
MIT License
1 stars 4 forks source link

Slow saving of verses after alignment #533

Open birchamp opened 1 year ago

birchamp commented 1 year ago

The delay for changing a verse is excessively long. Saving a verse should be less than 6s in Psalms. Rich has suggested sending a patch. Or it could be done as a background task, but that brings complications with failed saves. Rich suggests https://git.door43.org/api/swagger#/repository/repoApplyDiffPatch

DoD:

Saving an edited verse (both text and alignment edits) in Psalms completes the task in less than 6 seconds.

PhotoNomad0 commented 1 year ago

Notes:

Index: 57-TIT.usfm
===================================================================
--- 57-TIT.usfm
+++ 57-TIT.usfm
@@ -9,9 +9,9 @@

 \\ts\\*
 \\c 1
 \\p
-\\v 1 \\zaln-s |x-strong="G39720" x-lemma="Παῦλος" x-morph="Gr,N,,,,,NMS," x-occurrence="1" x-occurrences="1" x-content="Παῦλος"\\*\\w Paul|x-occurrence="1" x-occurrences="1"\\w*\\zaln-e\\*,
+\\v 1 EDITED verse: \\zaln-s |x-strong="G39720" x-lemma="Παῦλος" x-morph="Gr,N,,,,,NMS," x-occurrence="1" x-occurrences="1" x-content="Παῦλος"\\*\\w Paul|x-occurrence="1" x-occurrences="1"\\w*\\zaln-e\\*,
 \\zaln-s |x-strong="G14010" x-lemma="δοῦλος" x-morph="Gr,N,,,,,NMS," x-occurrence="1" x-occurrences="1" x-content="δοῦλος"\\*\\w a|x-occurrence="1" x-occurrences="1"\\w*
 \\w servant|x-occurrence="1" x-occurrences="1"\\w*\\zaln-e\\*
 \\zaln-s |x-strong="G23160" x-lemma="θεός" x-morph="Gr,N,,,,,GMS," x-occurrence="1" x-occurrences="2" x-content="Θεοῦ"\\*\\w of|x-occurrence="1" x-occurrences="5"\\w*
 \\w God|x-occurrence="1" x-occurrences="2"\\w*\\zaln-e\\*
PhotoNomad0 commented 1 year ago

@elsylambert @danielklapp Implemented save of diff patch in v2.1.0 build 7b1667f

danielklapp commented 1 year ago

Saving in Psalms is faster with this patch. Tested with v2.1.0 build 7b1667f QA against v2.1.0 build 10ae431 QA.

elsylambert commented 1 year ago

Comparing with the Release version 2.0, v2.1.0 build fc21e59 QA saves faster. Average of 6s for Psalms.