mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Reduced size of POSITION
Replaced Cost_estimate prefix_cost with a double as prefix_cost was only used to store and retrive total prefix cost. This also speeds up things (a bit) as don't have to call Cost_estimate::total_cost() for every access to the prefix_cost. Sizeof POSITION decreased from 304 to 256.
This commit is contained in:
@@ -17945,7 +17945,7 @@ void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab,
|
||||
|
||||
if (first_tab > join->const_tables)
|
||||
{
|
||||
cost= join->positions[first_tab - 1].prefix_cost.total_cost();
|
||||
cost= join->positions[first_tab - 1].prefix_cost;
|
||||
rec_count= join->positions[first_tab - 1].prefix_record_count;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user