-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: priority queues: declare as static inlines
After the move to C files we got some drop in the performance when running latency_measure. This patch declares the priority queue functions as static inlines with minor optimizations. The result for one metric (on qemu): 3.6 and before the anything was changed: Get data from LIFO (w/ ctx switch): 13087 ns after original change (46484da): Get data from LIFO (w/ ctx switch): 13663 ns with this change: Get data from LIFO (w/ ctx switch): 12543 ns So overall, a net gain of ~ 500ns that can be seen across the board on many of the metrics. (cherry picked from commit 4593f0d) Original-Signed-off-by: Anas Nashif <[email protected]> GitOrigin-RevId: 4593f0d Change-Id: I24bcab9462c3fdfd398032be51be0378be059279 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5476004 Commit-Queue: Dawid Niedźwiecki <[email protected]> Tested-by: Dawid Niedźwiecki <[email protected]> Reviewed-by: Dawid Niedźwiecki <[email protected]> Tested-by: ChromeOS Prod (Robot) <[email protected]>
- Loading branch information
Showing
3 changed files
with
141 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters