• unknown's avatar
    InnoDB: Optimize rec_get_offsets(), rec_copy_prefix_to_buf() and · 1c8f5500
    unknown authored
    other rec_ functions based on OProfile measurements on GNU/Linux x86.
    
    
    innobase/include/rem0rec.h:
      Replace FALSE/TRUE ibool comp with zero/nonzero ulint comp.
      Remove rec_set_node_ptr_flag().
    innobase/include/rem0rec.ic:
      Replace FALSE/TRUE ibool comp with zero/nonzero ulint comp.
      Remove rec_set_node_ptr_flag().
      Add UNIV_LIKELY and UNIV_UNLIKELY hints.
      Correct a spelling error in comment.
      Simplify rec_get_deleted_flag().
    innobase/rem/rem0rec.c:
      Add UNIV_LIKELY and UNIV_UNLIKELY hints.
      rec_init_offsets(), rec_get_offsets_func(): Optimize for x86.
      rec_set_field_extern_bits(): Move "comp" flag outside the loop.
      rec_copy_prefix_to_buf(): Add UNIV_PREFETCH hints.
    1c8f5500
rem0rec.h 19.6 KB