Skip to content

perf: Improve string usage #4110

@obastemur

Description

@obastemur
  • BuiltInPropertyRecords::XXXXXXXX.Equals calls use 1:1 string comparison. Worst case use PropertyRecord from specialized strings and compare the propertyId DONE Equals: minor improvements #4123

  • String::Equals may share the content once String1 == String2 Further comparison of those strings would be instant and we could GC the unnecessary copy. This needs more work. DONE string: Share buffer when it's possible #4163

  • CharacterBuffer internal class usage in TypeHandler Get/Set etc. calls require a quick investigation. Overall, some usage of CharacterBuffer can be replaced with propertyId from specialized string.

  • We do convert from CHAR16 to CHAR for almost everything (JSRT). Experiment replacing CHAR16 to CHAR and see the gain. In other words, see what would happen if ChakraCore internally use CHAR type.

  • CompoundString alternative for concatenating two strings ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions