[DragonFlyBSD - Submit #2765] (Closed) [PATCH] sys/vfs/hammer: make btree_search() climb up btree slightly faster

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Jan 20 07:35:46 PST 2015


Issue #2765 has been updated by tkusumi.

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

Applied in changeset commit:a9fd59b8032d8b40869dd1ff92c0b44dff59ed87.

----------------------------------------
Submit #2765: [PATCH] sys/vfs/hammer: make btree_search() climb up btree slightly faster
http://bugs.dragonflybsd.org/issues/2765#change-12552

* Author: tkusumi
* Status: Closed
* Priority: Normal
* Assignee: tuxillo
* Category: VFS subsystem
* Target version: 4.2.x
----------------------------------------
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--------------------------------
0001-sys-vfs-hammer-make-btree_search-climb-up-btree-slig.patch (1.59 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list