fsep is slow even when we don't benefit from it, relax its use?#89
fsep is slow even when we don't benefit from it, relax its use?#89Ptival wants to merge 1 commit intoGaloisInc:masterfrom
fsep is slow even when we don't benefit from it, relax its use?#89Conversation
Allows better performance for unbounded width layouts.
|
What about always using |
|
It makes long type descriptions more readable, e.g. But indeed I don't know whether this is ever helpful. I had attempted to preserve this behavior just in case someone was relying on it, but if you think it's unlikely, I think it'd be reasonable to just switch to |
|
At this point I think that Galois is the heaviest user of Another alternative would be to look at changing the underlying pretty-printing library. I think that wl-pprint might perform better here as the line wrapping logic is a bit less complicated? |
Creating as draft to have a discussion on design.
I noticed we pay a huge performance cost on running
fsep, even though we use an unbounded width layout. I'm intending to ask upstream topretty(alsoprettyprinter) whether they can do anything about this, but in the meantime, it'd be nice ifllvm-prettywas flexible enough to allow opting out offsepin favor ofhsepwhen we know there is no reason to try and "fill a line".This example PR works (and takes the pretty-printing down from ~30 seconds to ~3 seconds on my use case).
I stashed the configuration with the
LLVMone, but this is completely unrelated. Should it warrant a second, separate implicit configuration? Or is there a nicer way of achieving this?