Skip to content

Operational takes too long to read out #1402

@mattiaswal

Description

@mattiaswal

Current Behavior

On a BPI-r3 with a pretty huge configuration with 6-7 SSIDs and a lot of firewall rules etc, it takes ~9s to read out operational. I have added a package to Infix: package/python-spy where you can profile how we unitilze the time. Here are two flame graphs:

No changes:
Image

With lazy imports:
Image

also i could see that yanger saved 1.5s when parallelized ip link and ip addr when reading out ietf-interfaces

other findings: infix-containers takes 0.5s even if no containers exist, same with infix-firewall.

Expected Behavior

Speedy operational

Steps To Reproduce

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions