Skip to content

Pre compute static attributes#81

Open
JonathanPOMPA wants to merge 5 commits intoPyCQA:masterfrom
JonathanPOMPA:pre_compute_static_attributes
Open

Pre compute static attributes#81
JonathanPOMPA wants to merge 5 commits intoPyCQA:masterfrom
JonathanPOMPA:pre_compute_static_attributes

Conversation

@JonathanPOMPA
Copy link

This PR computes attributes that never change. Before, they were properties of the Node class that were re-computed at each call. Now they are computed once in the __init__ method.

This seems small but in our case it enhances quite a lot the performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant