Skip to content

Commit 00cb0e7

Browse files
Fixes stage1 multistage-table sizes, reducing memory footprint a bit.
Signed-off-by: Christian Parpart <christian@parpart.family>
1 parent f29b88d commit 00cb0e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Fixes unicode-query's output for "character width".
44
- Fixes decoding invalid UTF-8 locking up.
5+
- Fixes stage1 multistage-table sizes, reducing memory footprint a bit.
56
- unicode-query is now linked statically on UNIX platforms.
67

78
## 0.2.0 (2022-11-13)

src/unicode/support/multistage_table_generator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class multistage_table_generator
6666
void generate()
6767
{
6868
assert(_inputSize % BlockSize == 0);
69-
_output.stage1.resize(_inputSize);
69+
_output.stage1.resize(_inputSize / BlockSize);
7070
for (SourceType blockStart = 0; blockStart <= _inputSize - BlockSize; blockStart += BlockSize)
7171
_output.stage1[blockStart / BlockSize] = get_or_create_index_to_stage2_block(blockStart);
7272
}

0 commit comments

Comments
 (0)