Skip to content

Replace lodash with native API #3753

@SukkaW

Description

@SukkaW

Feature Request

The idea came from hexojs/site#1139 (comment) & #3677.

There is an article suggests we don't need lodash anymore.

According to benchmark below we can see es6 performance more or less as same as Lodash, in term of CPU, Memory or Handling time, at least in browser.

There are also some benchmark of lodash vs es6 and es6 is definitely much faster in browser:

IMHO, we might consider replace at least some lodash with native js.

A guide about how to replace lodash with es6: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore

A list of files that requires lodash:

hexo

We might start with lib located under lib/plugins/

warehouse

cc @curbengh @segayuu

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions