Skip to content

Performance #99

@steebchen

Description

@steebchen

This is a pretty cool library! I'm doing something like this:

while (enc.encode(raw).length > length) {
  raw = raw.slice(0, -1000)
}

to truncate big data, however this is quite slow (running this 100 times can take like 1-2 seconds).

Is there any better way to do this or can I optimize this somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions