-
-
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.
module.c: Rewrite autoloading using a linked list.
This largely rewrites the module traversal logic of the module autoloading that occurs at BBS startup. Previously, this used a set of string lists to keep track of modules that should be preloaded, not loaded, required, etc. Over time, this became very clunky and inefficient, and didn't allow capturing relationships involving multi-layer dependencies at all. Instead of this, we now use a single (doubly) linked list so that the modules can be ordered correctly prior to actually autoloading them. This also reduces the number of traversals order all and is more efficient. Some logging has also been cleaned up to be less cluttered and more usable for the user. LBBS-2 #close
- Loading branch information
1 parent
bcbb2b1
commit fb59950
Showing
8 changed files
with
1,531 additions
and
208 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.