-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: - Rewrite Box. - Process files during loading file list. - Delay file hash check. Use File.changed() to check if file changed. - Remove watch delay. - Parallel processing. - Save rendered content in warehouse. It really saves a lot of time. - Rewrite generate console. - Cache rendered content so we don't have to render it again. - Load file list from cache. Don't delete other files in public folder. Resolve #1310 - Remove file stat check. - Parallel generating. - Resolve race conditions. Known issues: - Parallel processing and parallel generating may cause race conditions. We have to solve this in warehouse. - Tests are not updated yet.
- Loading branch information
Showing
16 changed files
with
669 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
9ba40f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add a speed test for hexo which has about 500 simple articles, 300 articles with image and 200 articles with complex struct.
9ba40f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use your blog for test currently. XD
BTW, hot processing is much faster in this commit because the rendered content is cached. Obviously rendering is the bottleneck.
Hexo 3.1:
This commit:
However many tests are failed due to this commit and I'm still fixing. orz
9ba40f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orz, I need write more article for test, 2333
Come on, let's make a faster & better hexo~