mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
lz4: improved stats, MSSQL: fixed issue with REFERENCES
git-svn-id: svn://ultimatepp.org/upp/trunk@7825 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
49ac9818dd
commit
74e1b50f89
3 changed files with 13 additions and 0 deletions
|
|
@ -73,6 +73,11 @@
|
|||
|
||||
#define COMMENT(txt) SCHEMA("-- " #txt "\n", NULL)
|
||||
|
||||
#define SEQUENCE(x) SCHEMA("create sequence " #x " start with 1;",\
|
||||
"drop sequence " #x ";") \
|
||||
UPGRADE("create sequence " #x " start with 1;")
|
||||
#define SEQUENCE_(x) DOID(x) SEQUENCE(x)
|
||||
|
||||
#include <Sql/sch_model.h>
|
||||
|
||||
#undef BIT
|
||||
|
|
@ -122,5 +127,10 @@
|
|||
|
||||
#undef UNIQUE
|
||||
|
||||
#undef REFERENCES
|
||||
|
||||
#undef TIMESTAMP
|
||||
#undef COMMENT
|
||||
|
||||
#undef SEQUENCE
|
||||
#undef SEQUENCE_
|
||||
|
|
|
|||
|
|
@ -431,6 +431,7 @@ static unsigned LZ4_count(const BYTE* pIn, const BYTE* pRef, const BYTE* pInLimi
|
|||
#ifdef LZ4_STATS
|
||||
|
||||
int lz4stat_LiteralLen;
|
||||
int lz4stat_Literals;
|
||||
int lz4stat_Matches;
|
||||
int lz4stat_BigMatch;
|
||||
int lz4stat_BigLiteral;
|
||||
|
|
@ -549,6 +550,7 @@ static int LZ4_compress_generic(
|
|||
/* Encode Literal length */
|
||||
unsigned litLength = (unsigned)(ip - anchor);
|
||||
STATCODE(lz4stat_LiteralLen += litLength;)
|
||||
STATCODE(lz4stat_Literals += litLength > 0);
|
||||
token = op++;
|
||||
if ((outputLimited) && (unlikely(op + litLength + (2 + 1 + LASTLITERALS) + (litLength/255) > olimit)))
|
||||
return 0; /* Check output limit */
|
||||
|
|
|
|||
|
|
@ -322,6 +322,7 @@ int LZ4_decompress_fast_withPrefix64k (const char* source, char* dest, int origi
|
|||
#endif
|
||||
|
||||
#ifdef LZ4_STATS
|
||||
extern int lz4stat_Literals;
|
||||
extern int lz4stat_LiteralLen;
|
||||
extern int lz4stat_Matches;
|
||||
extern int lz4stat_BigMatch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue