Skip to content
Snippets Groups Projects
Select Git revision
  • stbootv2
  • master protected
  • stboot default
  • scarthgap-5.0
  • yocto-5.0
  • yocto-4.3.4
  • nanbield-4.3.4
  • yocto-4.0.17
  • kirkstone-4.0.17
  • 5.0_M3
  • dunfell-23.0.32
  • yocto-3.1.32
  • nanbield-4.3.3
  • yocto-4.3.3
  • yocto-4.0.16
  • kirkstone-4.0.16
  • yocto-3.1.31
  • dunfell-23.0.31
  • 5.0_M2
  • yocto-4.3.2
  • nanbield-4.3.2
  • 5.0_M1
  • yocto-4.0.15
23 results

yocto-poky

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Richard Purdie authored
    The previous "contains" changes caused a ~3% parsing speed impact.
    Looking at the cause of those changes was interesting:
    
    * Use of defaultdict was slower than just checking for missing entries
      and setting them when needed.
    * Even the "import collections" adversely affects parsing speed
    * There was a missing intern function for the contains cache data
    * Setting up a log object for each variable has noticeable overhead
      due to the changes in the code paths uses, we can avoid this.
    * We can call getVarFlag on "_content" directly within VariableParse
      for a noticeable speed gain since its a seriously hot code path.
    
    This patch therefore tweaks the code based on the above observations to
    get some of the speed back.
    
    (Bitbake rev: fca802187a2a30686a8a07d2b6b16a3e5716e293)
    
    Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
    eba506b3
    History
    Name Last commit Last update