From 982607508d865d02ddd87af4aaf7c301c47cbc7e Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Feb 2014 15:46:13 +0200 Subject: MDEV-4309: DBT-3 Q1 benchmark: Benchmark + profile a patch Removed repetative calls of virtual functions. Removed check of posibility just copy field for every record. --- sql/field.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sql/field.h') diff --git a/sql/field.h b/sql/field.h index 5a1607c1cbf..b1c27bd6018 100644 --- a/sql/field.h +++ b/sql/field.h @@ -75,6 +75,8 @@ struct ha_field_option_struct; struct st_cache_field; int field_conv(Field *to,Field *from); +int field_conv_incompatible(Field *to,Field *from); +bool memcpy_field_possible(Field *to, Field *from); int truncate_double(double *nr, uint field_length, uint dec, bool unsigned_flag, double max_value); longlong double_to_longlong(double nr, bool unsigned_flag, bool *error); @@ -2463,7 +2465,7 @@ public: uint max_packed_col_length(uint max_length); void free() { value.free(); } inline void clear_temporary() { bzero((uchar*) &value,sizeof(value)); } - friend int field_conv(Field *to,Field *from); + friend int field_conv_incompatible(Field *to,Field *from); uint size_of() const { return sizeof(*this); } bool has_charset(void) const { return charset() == &my_charset_bin ? FALSE : TRUE; } -- cgit v1.2.1