projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimise the psql reader, by fetching more than one record at a time.
[pspp-builds.git]
/
src
/
language
/
data-io
/
get-data.c
diff --git
a/src/language/data-io/get-data.c
b/src/language/data-io/get-data.c
index 189054a507058c38b17b1ba027d0f69b5a995613..bc09715bd81bdf056d3f5e382933ee79a4a8a32a 100644
(file)
--- a/
src/language/data-io/get-data.c
+++ b/
src/language/data-io/get-data.c
@@
-69,6
+69,7
@@
parse_get_psql (struct lexer *lexer, struct dataset *ds)
psql.allow_clear = false;
psql.conninfo = NULL;
psql.str_width = -1;
psql.allow_clear = false;
psql.conninfo = NULL;
psql.str_width = -1;
+ psql.bsize = -1;
ds_init_empty (&psql.sql);
lex_force_match (lexer, '/');
ds_init_empty (&psql.sql);
lex_force_match (lexer, '/');
@@
-93,6
+94,12
@@
parse_get_psql (struct lexer *lexer, struct dataset *ds)
psql.str_width = lex_integer (lexer);
lex_get (lexer);
}
psql.str_width = lex_integer (lexer);
lex_get (lexer);
}
+ else if ( lex_match_id (lexer, "BSIZE"))
+ {
+ lex_match (lexer, '=');
+ psql.bsize = lex_integer (lexer);
+ lex_get (lexer);
+ }
else if ( lex_match_id (lexer, "UNENCRYPTED"))
{
psql.allow_clear = true;
else if ( lex_match_id (lexer, "UNENCRYPTED"))
{
psql.allow_clear = true;