Skip to content

optimize use int id #208

Description

@asukaminato0721

now in this engine, it use

str id -> node

since node_id is unique, we can give each str an id

then just nodes[int_id]

array visit is much faster than str hash.

this is called arena.

related context: https://www.fxzhihu.com/question/36756224/answer/3575810103

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions