gowl

Why JavaScript Does Not Need a StringBuilder

  •  
  •   gowl · Jan 14, 2023 · 1520 views
    This topic created in 1243 days ago, the information mentioned may be changed or developed.

    To avoid O(n^2) char buffer copying, a “rope” node (JSRope) can be created to represent a delayed string concatenation. Concatenation (called flattening) is performed if and when a linear char array is requested. In general, ropes form a binary dag whose internal nodes are JSRope string headers with no associated char array and whose leaf nodes are linear strings.

    https://josephmate.github.io/java/javascript/stringbuilder/2020/07/27/javascript-does-not-need-stringbuilder.html

    2 replies    2023-01-14 13:18:19 +08:00
    gowl
        1
    gowl  
    OP
       Jan 14, 2023
    看来纯技术话题没人感兴趣啊:)
    512357301
        2
    512357301  
       Jan 14, 2023 via Android
    v 站虽然学历不错,但是翻译成中文或许回复更多
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5168 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:53 · PVG 11:53 · LAX 20:53 · JFK 23:53
    ♥ Do have faith in what you're doing.