Skip to content

Rope strings #1002

@laishere

Description

@laishere

It's great to see @bellard is back!

What makes me most excited about is the commit on long strings concatenation:
bellard/quickjs@156d981

I tested on the latest quickjs and quickjs-ng with qjs:

const t1 = Date.now()
let str = '';
for (let i = 0; i < 1000_000; i++) {
  str += 'a';
}
const t2 = Date.now()
console.log(t2 - t1);

quickjs-ng: 6854ms
quickjs: 112ms

Do we have any plan to merge this commit? @saghul @bnoordhuis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions