gen_kobject_list.py is extremely slow #84034
Labels
area: Build System
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
With
CONFIG_USERSPACE
enabled,gen_kobject_list.py
can take an obscenely long time to run, approximately 30s in our current (decently large) project.To Reproduce
CONFIG_USERSPACE=y
in a large projectninja -v
kobject_prebuilt_hash.gperf
andkobject_hash.gperf
take a very long timeThis can even be observed in the barebones
samples/userspace/hello_world_user
, where each of those takes 0.6s.Expected behavior
Generating these tables should not take up a significant part of the total build time.
Impact
For affected projects (large, with userspace enabled), this makes the already slow link times much, much worse. Touching a single file makes a subsequent build take 60 seconds, approximately 55 of which are spent waiting on the two invocations of
gen_kobject_list.py
.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: