mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 07:23:04 +01:00
little optimalization
This commit is contained in:
parent
574525c58c
commit
6e12991438
@ -3286,19 +3286,17 @@ static dsc* concatenate(thread_db* tdbb, jrd_nod* node, impure_value* impure)
|
||||
UCHAR* p = impure->vlu_desc.dsc_address;
|
||||
|
||||
if (length1) {
|
||||
do {
|
||||
*p++ = *address1++;
|
||||
} while (--length1);
|
||||
memcpy(p, address1, length1);
|
||||
p += length1;
|
||||
}
|
||||
|
||||
if (length2) {
|
||||
do {
|
||||
*p++ = *address2++;
|
||||
} while (--length2);
|
||||
memcpy(p, address2, length2);
|
||||
}
|
||||
|
||||
if (temp3)
|
||||
if (temp3) {
|
||||
delete temp3;
|
||||
}
|
||||
}
|
||||
return &impure->vlu_desc;
|
||||
}
|
||||
|
@ -399,9 +399,9 @@ void IDX_create_index(
|
||||
|
||||
if (l > 0) {
|
||||
const UCHAR* q = key.key_data;
|
||||
do {
|
||||
*p++ = *q++;
|
||||
} while (--l);
|
||||
memcpy(p, q, l);
|
||||
p += l;
|
||||
q += l;
|
||||
}
|
||||
if ( (l = key_length - key.key_length) ) {
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user