Skip to content

[Speed] scope.Findvar maybe slow down all the operators #9232

@typhoonzero

Description

@typhoonzero

Here's some reference I've searched:
https://softwareengineering.stackexchange.com/questions/49550/which-hashing-algorithm-is-best-for-uniqueness-and-speed

Every operator need to call Findvar directly or indirectly.

As C++ default hash<std::string> implementation uses "murmurhash", which is the fastest hash function, it may still slower than directly lookup a variable using an offset. We can consider a way to make runtime Findvar implementation do not use unordered_map.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions