Bug 14233 - Improve the time complexity of opkg configure.
Summary: Improve the time complexity of opkg configure.
Status: ACCEPTED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.4.2
Hardware: Other arm
: Undecided enhancement
Target Milestone: next-patch
Assignee: Alex Stewart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-02-10 19:34 UTC by abdul karim
Modified: 2021-07-08 18:10 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abdul karim 2021-02-10 19:34:18 UTC
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 "opkg configure" 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.