Why aren't FingerTrees used enough to have a stable implementation?

前端 未结 3 1486
萌比男神i
萌比男神i 2021-02-07 11:31

A while ago, I ran across an article on FingerTrees (See Also an accompanying Stack Overflow Question) and filed the idea away. I have finally found a reason to make use of the

3条回答
  •  长情又很酷
    2021-02-07 12:19

    Ignoring your Finger Tree question and only responding to your further explanation: did you look into Data.Text.Lazy.Builder or, specifically for building HTML, blaze-html?

    Both allow fast concatenation. For slicing, if that is important for solving your problem, they might not have ideal performance.

提交回复
热议问题