-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field aliases now use hashes, not linear scan #141
base: master
Are you sure you want to change the base?
Conversation
….1+) * Update test-run.py and lib/tarantool_server.py to support python 3 * Update tests accordingly to new version of PHPUnit * Added initialization of standart class properties to 'Tarantool'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general. Added minor comments.
Blocked until #140 will be merged.
} | ||
#define MH_DEFINE_CMPFUNC(NAME, TYPE) \ | ||
int mh_##NAME##cmp_eq(const TYPE **lval, const TYPE **rval, \ | ||
void *arg) { \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double whitespace.
} \ | ||
\ | ||
int mh_##NAME##cmp_key_eq(const struct schema_key *key, \ | ||
const TYPE **val, void *arg) { \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two whitespaces before tabs.
if (strncmp(val->field_name, field_name, field_name_len) == 0) | ||
return val->field_number; | ||
} | ||
return -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems it was the singleton use of the schema_list/schema_list_len, so these fields can be removed now from struct schema_space_value?
#24