jerryscript
jerryscript copied to clipboard
Optimize Date builtin
The current implementation of the Date object has some performance flaws. According to this https://github.com/Samsung/jerryscript/pull/459#issuecomment-130806960 it cause pretty high performance impact during test262 running. Possible optimizations:
- Use
int64_tto represent the raw Date value- currently it is using
ecma_number_t
- currently it is using
- Use faster algorithms to find the exact Date
- look up tables where it is possible (while keeping in mind the compiled binary size)
- binary search instead of linear search