Skip to content

[UR] Ease the use of similar concept (binary tree vs red black tree, rope vs string vs buffer,...) #11722

Closed
@nicolasboulay

Description

@nicolasboulay

There is many sort of contener and choosing the best, can't be easy to do. For string, it's easy to always use String type (as in ocaml or java),but concatenation will be slow, very slow. It could be great if the compiler use Buffer instead. Or rope (a contener of string), if the string is udge.

To do that, i propose to autorise a virtual class to be declared, the compiler will choose a daughter class. The class invariant should help to avoid mistakes.

Compiler could choose with heuristics as loops presence, and frequency of use of methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-slowIssue: Problems and improvements with respect to performance of generated code.metabugIssues about issues themselves ("bugs about bugs")

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions