Join the community today
Become a Member

Beta Branch optimise all rpm query checks for yum package checks & installs

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 24, 2016.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    3:04 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    3:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    difference between old check
    Code (Text):
    time rpm -qa wget
    wget-1.14-10.el7_0.1.x86_64
    
    real    0m0.641s
    user    0m0.633s
    sys     0m0.007s

    versus new check times which is 95% faster
    Code (Text):
    time rpm -ql wget >/dev/null 2>&1; echo $?
    
    real    0m0.032s
    user    0m0.031s
    sys     0m0.002s
    0

    probably due to my mistaken use of -a flag heh
    Code (Text):
    time rpm -q wget
    wget-1.14-10.el7_0.1.x86_64
    
    real    0m0.034s
    user    0m0.030s
    sys     0m0.003s
     
    Last edited: May 25, 2016