You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library now reached a point where the most basic functionality works well enough but corner cases start to pile up, performance is improvable and the API feels clunky here and there.
So it's time to collect ideas and thoughts on a major rewrite of this lib
Ideas:
rewrite in rust: should improve performance (esp as a lot of objects are created)
switch to in-memory DB instead of lists: should improve performance, as filtering, assuming the choice of a fitting DB provider, should eliminate the need to run over lists of lists of list, like hundreds of times (e.g. GetItemsFor)
heavily improved performance (test case parsing oe-core's recipes)
lighter API (just expose what is really needed), likely the low level things like File, Line should be r/o, while all other "higher" level classes should provide r/w attributes
Non-Goals:
support for arbitrary python inline functions or arbitrary helper function inside inline functions,
as this will likely need to compute code - which shouldn't be done for security reasons
support for layer assembly, like layer order etc etc - this needs to be done in full build using bitbake
Feel free to comment for ideas or other things to improve
The library now reached a point where the most basic functionality works well enough but corner cases start to pile up, performance is improvable and the API feels clunky here and there.
So it's time to collect ideas and thoughts on a major rewrite of this lib
Ideas:
GetItemsFor)InFileLineattribute and just create a linked list of tokens found (see Inconsistentstash.GetItemsFor(filename=_file, classifier=Inherit.CLASSIFIER)#367 for details)stash.GetItemsFor(filename=_file, classifier=Inherit.CLASSIFIER)#367 for an example)Goals:
Non-Goals:
as this will likely need to compute code - which shouldn't be done for security reasons
Feel free to comment for ideas or other things to improve