Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.

Commit ace8389

Browse files
author
cschanaj
committedMar 23, 2017
Performance boost on identical HTTP(s) response bodies
1 parent fcb620c commit ace8389

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/modules/DifferentContent.c

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ httpse_check_different_content(const HttpseTData *tdata)
6060
return HTTPSE_OK;
6161
}
6262

63+
64+
/* Remark: if strcmp == 0, no diff content */
65+
if(0 == strcmp(tdata->rs->userp->c_str, tdata->rp->userp->c_str))
66+
{
67+
return HTTPSE_OK;
68+
}
69+
70+
6371
/* Remark: compare HTML DOM objects */
6472
double tag_pts[HTTPSE_TAG_VECTOR_SZ];
6573
double tag_ptp[HTTPSE_TAG_VECTOR_SZ];

0 commit comments

Comments
 (0)
This repository has been archived.