mariadb/btr
marko 565b4b8e7c branches/zip: Improve code locality in btr_cur_search_to_nth_level().
Make the variables rw_latch and buf_mode local in the for loop.
Initialize them at the beginning of each for loop round to reduce
register spilling on register-starved platforms such as the x86.  Move
the assignment of rw_latch and buf_mode from the end of the loop to
the beginning of the loop.  These parameters will only be needed in
the buf_page_get_gen() call at the start of the loop.

Remove the second (redundant) call to ibuf_should_try().

ibuf_should_try(): Now that the successful calls to this function will
be halved, halve the magic constant that ibuf_flush_count will be
compared to, accordingly.

rb://61 approved by Heikki over IM.
2008-12-12 12:22:34 +00:00
..
btr0btr.c branches/zip: Introduce UNIV_ZIP_COPY for invoking page_zip_copy_recs() 2008-10-15 09:21:54 +00:00
btr0cur.c branches/zip: Improve code locality in btr_cur_search_to_nth_level(). 2008-12-12 12:22:34 +00:00
btr0pcur.c branches/zip: Non-functional change: 2008-09-22 06:59:58 +00:00
btr0sea.c branches/zip: Non-functional change: 2008-09-22 06:59:58 +00:00