• unknown's avatar
    InnoDB: Some low-level optimizations made based on OProfile results. · 98dc4142
    unknown authored
    
    innobase/dict/dict0mem.c:
      dict_mem_table_create(): Add a debug assertion.
    innobase/include/btr0btr.ic:
      btr_node_ptr_get_child_page_no(): Add a UNIV_UNLIKELY hint.
      Remove a buf_frame_align() call.
    innobase/include/btr0cur.ic:
      btr_cur_get_page(): Add a debug assertion.
    innobase/include/buf0buf.ic:
      buf_block_peek_if_too_old(): Replace if() with return().
      buf_block_align(), buf_frame_align(): Add UNIV_UNLIKELY hints.
    innobase/include/data0type.ic:
      dtype_get_fixed_size(): Add UNIV_UNLIKELY hints.
    innobase/include/mem0mem.ic:
      Remove signedness warning in debug assertion.
    innobase/include/read0read.ic:
      read_view_sees_trx_id(): Eliminate a comparison inside loop.
    innobase/include/row0sel.ic:
      open_step(): Add UNIV_EXPECT hint.
    innobase/include/row0upd.ic:
      upd_field_set_field_no(): Add a UNIV_UNLIKELY hint.
    innobase/include/sync0rw.ic:
      Add UNIV_LIKELY and UNIV_UNLIKELY hints.
      rw_lock_x_lock_func_nowait(): Eliminate a function call.
      Replace ut_a() assertions with ut_ad().
    innobase/include/trx0rseg.ic:
      Add UNIV_UNLIKELY hints.
    innobase/include/ut0rnd.ic:
      ut_fold_binary(): Eliminate a loop variable
      to avoid register spilling on x86.
    98dc4142
ut0rnd.ic 4.86 KB