-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create index inside writer and transformation (#319)
* Create index inside writer and transformation. This creates the index while writing the file saving an extra pass * Display dlerror when dynamic linking fails. Helps with missing symbol errors * sheet: Allow search on generated buffers * sheet: Allow index to be used before it is complete * tests: Retry matching expected output to improve test robustness. This also reduces test time dramatically on faster hardware. * sheet: Use buffer status on first display to prevent race in testing * sheet: Convert sheet-subcommand tests to use expect * sheet: Fix bad memory access by duplicating filename string. UI buffer frees this on closing and the indexing thread will use it so it can't point to a stack variable or memory that gets overwritten after the file is opened. * sheet: Convert sheet extension example tests to use expect * sheet: Add benchmark test * sheet: Only notify the UI of progress after 32MB * sheet: Fix bug in \r\n line handling. Added related test
- Loading branch information
Showing
44 changed files
with
3,473 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
app/ext_example/test/expected/test-sheet-extension-1-indexed.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Row # Country City AccentCit Region Populatio Latitude Longitude | ||
1 ir sarmaj-e Sarmaj-e 13 34.3578 47.5207 | ||
2 ad aixirival Aixirival 06 42.466666 1.5 | ||
3 mm mokho-atw Mokho-atw 09 18.033333 96.75 | ||
? for help 1 |
5 changes: 5 additions & 0 deletions
5
app/ext_example/test/expected/test-sheet-extension-2-indexed.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Row # HA1 HA2 HA3 HB1 HB2 HB3 HC1 HC2 HC3 | ||
1 A1 B1 C1 | ||
2 A2 B2 C2 | ||
3 A3 B3 C3 | ||
? for help 1 |
5 changes: 5 additions & 0 deletions
5
app/ext_example/test/expected/test-sheet-extension-2-transformed.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Row # HA1 HA2 HA3 HB1 HB2 HB3 HC1 HC2 HC3 Column count | ||
1 A1 B1 C1 6 | ||
2 A2 B2 C2 9 | ||
3 A3 B3 C3 12 | ||
? for help 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.