<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14233</bug_id>
          
          <creation_ts>2021-02-10 19:34:18 +0000</creation_ts>
          <short_desc>Improve the time complexity of opkg configure.</short_desc>
          <delta_ts>2021-07-08 18:10:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.4.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>next-patch</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="abdul karim">hafizabdul_karim</reporter>
          <assigned_to name="Alex Stewart">alex.stewart</assigned_to>
          <cc>alex.stewart</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89200</commentid>
    <comment_count>0</comment_count>
    <who name="abdul karim">hafizabdul_karim</who>
    <bug_when>2021-02-10 19:34:18 +0000</bug_when>
    <thetext>Preconditions:
oe-core branch is dunfell. opkg version is 0.4.2, and the target board is NXP i.MX6ullevk.


Triggering Action/Cause:
Boot us the system, run-postinsts.service will run on the first boot. in this service the command &quot;opkg configure&quot; is run.


Expectation:
opkg configure should complete in less than a second time.

Reality.
opkg configure takes around 8s of time. ! further looked into the opkg source and found that this loop is consuming 8s of time.
https://git.yoctoproject.org/cgit/cgit.cgi/opkg/tree/libopkg/opkg_cmd.c?h=v0.4.2#n358 and is run 938 times.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>