Skip to content

Commit 98a6abe

Browse files
committed
DBD::Pg Array and string optimization patch
Replace string operations with an efficient string concat library Replace all linked lists with arrays Use arrays to remove quadratic complexity algorithm. Fix CPAN RT #105492
1 parent fcedd81 commit 98a6abe

File tree

6 files changed

+451
-272
lines changed

6 files changed

+451
-272
lines changed

MANIFEST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ types.c
2424
types.h
2525
quote.c
2626
quote.h
27+
sstring.h
28+
sstring.c
2729

2830
.perlcriticrc
2931
t/dbdpg_test_setup.pl

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ my %opts =
214214
NAME => 'DBD::Pg',
215215
VERSION_FROM => 'Pg.pm',
216216
INC => "-I$POSTGRES_INCLUDE -I$dbi_arch_dir",
217-
OBJECT => "Pg\$(OBJ_EXT) dbdimp\$(OBJ_EXT) quote\$(OBJ_EXT) types\$(OBJ_EXT)",
217+
OBJECT => "Pg\$(OBJ_EXT) dbdimp\$(OBJ_EXT) quote\$(OBJ_EXT) types\$(OBJ_EXT) sstring\$(OBJ_EXT)",
218218
LIBS => ["-L$POSTGRES_LIB -lpq -lm"],
219219
AUTHOR => 'Greg Sabino Mullane',
220220
ABSTRACT => 'PostgreSQL database driver for the DBI module',

0 commit comments

Comments
 (0)