Project

General

Profile

Actions

Submit #2765

closed

[PATCH] sys/vfs/hammer: make btree_search() climb up btree slightly faster

Added by tkusumi over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
VFS subsystem
Target version:
Start date:
01/11/2015
Due date:
% Done:

100%

Estimated time:

Description

This cleanup patch lets cursor climb up deep/fat btree slightly faster (lightweight), if not slower.

The local variable enospc won't be anything other than 0 at this point thus (&& enospc == 0) isn't necessary here. Also node type checking is redundant as they both use btree_node_is_full(). There used to be btree_node_is_almost_full() and internal/leaf needed to be separated by if/else but not anymore.


Files

Actions #1

Updated by tuxillo over 9 years ago

  • Assignee set to tuxillo
  • Target version set to 4.2
Actions #2

Updated by tkusumi about 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF