SF #561244 Micro optimizations

Convert loops to memset()s.
This commit is contained in:
Neal Norwitz 2002-06-13 21:11:11 +00:00
parent 606edc1d97
commit 35fc7606f0
3 changed files with 7 additions and 14 deletions

View file

@ -1376,13 +1376,10 @@ sre_getlower(PyObject* self, PyObject* args)
LOCAL(void)
state_reset(SRE_STATE* state)
{
int i;
state->lastmark = 0;
/* FIXME: dynamic! */
for (i = 0; i < SRE_MARK_SIZE; i++)
state->mark[i] = NULL;
memset(state->mark, 0, sizeof(*state->mark) * SRE_MARK_SIZE);
state->lastindex = -1;