Changeset: 2e4da4b1a03c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2e4da4b1a03c
Modified Files:
gdk/gdk_atoms.c
Branch: default
Log Message:
Get rid of unnecessary padding.
diffs (24 lines):
diff --git a/gdk/gdk_atoms.c b/gdk/gdk_atoms.c
--- a/gdk/gdk_atoms.c
+++ b/gdk/gdk_atoms.c
@@ -1243,13 +1243,15 @@ strPut(Heap *h, var_t *dst, const char *
/* if not, pad more */
pad += GDK_VARALIGN;
}
- } else if (*bucket) {
+ } else {
/* large string heap (>=64KB) --
* opportunistic/probabilistic double elimination */
- pos = elimbase + *bucket + extralen;
- if (GDK_STRCMP(v, h->base + pos) == 0) {
- /* already in heap; do not insert! */
- return *dst = (var_t) (pos >> GDK_VARSHIFT);
+ if (*bucket) {
+ pos = elimbase + *bucket + extralen;
+ if (GDK_STRCMP(v, h->base + pos) == 0) {
+ /* already in heap; do not insert! */
+ return *dst = (var_t) (pos >> GDK_VARSHIFT);
+ }
}
#if SIZEOF_VAR_T >= SIZEOF_VOID_P /* in fact SIZEOF_VAR_T == SIZEOF_VOID_P */
if (extralen == 0)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list