Skip to content

Performance problem in completions(e.g. tabopen) when 'Smart Completions' contains long URL. #21

@Mine02C4

Description

@Mine02C4

Suddenly one day, Firefox stops for a few seconds at the completion in 'tabopen', and tried to profiling.

vimperator-performance

This screenshot is the result.

https://github.com/vimperator/vimperator-labs/blob/master/common/content/completion.js#L425

This line has been called very much. The number is proportional to the length of a URL, and the time for each is proportional to the length, so the total time is proportional to the squares of the length.

My native language is Japanese, so I access well to pages whose URL contains multi-byte characters.Because it has been displayed in the completion, this performance issue surfaced.

However, I do not fully understand the structure of this part, I cannot write a patch to resolve this problem.

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