Store pager history in UTF-8

Reduces storage requirement by a fator of 4 at the cost of some CPU
usage, to encode to UTF-8
This commit is contained in:
Kovid Goyal
2020-09-21 12:29:10 +05:30
parent bf19d2b156
commit b5007ba276
4 changed files with 52 additions and 27 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ typedef struct {
} HistoryBufSegment;
typedef struct {
Py_UCS4 *buffer;
uint8_t *buffer;
size_t buffer_size, max_sz;
size_t start, length;
bool rewrap_needed;