unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.
This commit is contained in:
Fredrik Lundh 2000-09-24 21:45:34 +00:00
parent 58af43fd76
commit a4287c29b3

View file

@ -13,17 +13,7 @@ Copyright (c) Corporation for National Research Initiatives.
#include "Python.h"
#include "unicodedatabase.h"
/* --- Helpers ------------------------------------------------------------ */
static
const _PyUnicode_DatabaseRecord *unicode_db(register int i)
{
register int page = i >> 12;
if (page < sizeof(_PyUnicode_Database))
return &_PyUnicode_Database[page][i & 0x0fff];
return &_PyUnicode_Database[0][0];
}
#define unicode_db _PyUnicode_Database_GetRecord
/* --- Module API --------------------------------------------------------- */