Lighten modules #15

Closed
opened 2025-01-02 07:01:19 +00:00 by timurgordon · 0 comments
timurgordon commented 2025-01-02 07:01:19 +00:00 (Migrated from github.com)

Working on this issue, I realized that some modules compiled really slowly due to import trees bringing the entire repository in. Importing some modules such as paramsparser, osal and gittools in particular slowed compile times (without tcc) to >20 seconds.

We should come up with guidelines to keep modules light, and detect other modules with tend to lower compile times, ideally figuring out the root cause.

Working on [this issue](https://github.com/freeflowuniverse/herolib/issues/6), I realized that some modules compiled really slowly due to import trees bringing the entire repository in. Importing some modules such as `paramsparser`, `osal` and `gittools` in particular slowed compile times (without tcc) to >20 seconds. - [Created a performance tool](86af42bf4ab6a51dc2a10e5f0b8baa6c761628f1) to print import trees of files in modules - [Started removing unnecessary imports and refactoring to avoid using entire modules for very little use](5d3df608e11502d1da158a6d9c35e7c47065cb64) We should come up with guidelines to keep modules light, and detect other modules with tend to lower compile times, ideally figuring out the root cause.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MahmoudEmad/herolib#15
No description provided.