repr and str does not scale linearly
Bug #963100 reported by
Martin Sandve Alnæs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UFL |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
repr and str calls themselves recursively, which results in O(n^2) performance.
A faster implementation would be constructing string pieces
for all nodes and piecing them together in one operation.
To post a comment you must log in.
This is not important anymore because repr is not used for == or signature.