Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdaba2b

Browse files
author
Alexander Korotkov
authored
Merge pull request#3 from Octonica/crossmatch_cnode
remove small allocation from crossmatch()
2 parentscd8da52 +ff0453f commitfdaba2b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎crossmatch.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,14 +878,12 @@ crossmatch(CrossmatchContext *ctx, ItemPointer values)
878878
/* Return next result pair if any. Otherwise close SRF. */
879879
if (ctx->resultsPairs!=NIL)
880880
{
881-
ResultPair*itemPointerPair= (ResultPair*)palloc(sizeof(ResultPair));
882-
883-
*itemPointerPair=*((ResultPair*)linitial(ctx->resultsPairs));
881+
ResultPairitemPointerPair=*((ResultPair*)linitial(ctx->resultsPairs));
884882
pfree(linitial(ctx->resultsPairs));
885883
ctx->resultsPairs=list_delete_first(ctx->resultsPairs);
886884

887-
values[0]=itemPointerPair->iptr1;
888-
values[1]=itemPointerPair->iptr2;
885+
values[0]=itemPointerPair.iptr1;
886+
values[1]=itemPointerPair.iptr2;
889887
}
890888
else
891889
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp