jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Optimize Date builtin

Open kkristof opened this issue 11 years ago • 0 comments

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_t to represent the raw Date value
    • currently it is using ecma_number_t
  • 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

kkristof avatar Aug 13 '15 19:08 kkristof