-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More compact storage micro-optimization.
- Loading branch information
Showing
9 changed files
with
138 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
/* | ||
* This file exports a set of constants that are used for Jest's haste map | ||
* serialization. On very large repositories, the haste map cache becomes very | ||
* large to the point where it is the largest overhead in starting up Jest. | ||
* | ||
* This constant key map allows to keep the map smaller without having to build | ||
* a custom serialization library. | ||
*/ | ||
module.exports = { | ||
/* shared in file map and module map */ | ||
ID: 0, | ||
|
||
/* file map attributes */ | ||
MTIME: 1, | ||
VISITED: 2, | ||
DEPENDENCIES: 3, | ||
|
||
/* module map attributes */ | ||
PATH: 1, | ||
TYPE: 2, | ||
|
||
/* module types */ | ||
MODULE: 0, | ||
PACKAGE: 1, | ||
|
||
/* platforms */ | ||
GENERIC_PLATFORM: 'g', | ||
}; |
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
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
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
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
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.