Commit Graph

122 Commits

Author SHA1 Message Date
Ivan Kopeykin 486b9a885b delete old packs 2021-11-06 22:31:25 +03:00
Tobias Koppers f270f50cae use different Promise check 2021-11-02 13:42:55 +01:00
Nitin Kumar eaa8bf6335 fix: improve logic to check if value is a `Promise` 2021-11-01 21:03:02 -07:00
Jonny Burger 92d5266d22 Update PackFileCacheStrategy.js 2021-10-24 16:20:20 +02:00
Jonny Burger 6776595f40
Honor `hashFunction` option for createFileSerializer 2021-10-24 15:41:52 +02:00
Tobias Koppers 5e16d642ad allow RegExp as managed and immutable paths
add all node_modules as managedPaths in futureDefaults
2021-10-18 22:56:41 +02:00
btea 857eebe495 fix: identifier typo 2021-10-13 11:01:46 +08:00
Tobias Koppers 4a8bf4c084 allow to configure all hash functions used
fix default hash function for HttpUriPlugin to sha512
2021-09-23 14:55:13 +02:00
Tobias Koppers ff69b3f617 allow process to exist and cancel timeout again 2021-09-16 13:56:14 +02:00
Tobias Koppers 3270275ffe split fresh packs by time
add comments

fix loosing cache

correctly store a lazy
2021-09-08 16:27:55 +02:00
Tobias Koppers 492055ae90 add cache compression 2021-07-02 07:05:13 +02:00
Tobias Koppers 142bc5610f store cache after large changes
detect larger changes automatically and use shorter timeout
2021-06-28 11:35:14 +02:00
Tobias Koppers e4389a494b
Merge pull request #13467 from myNameIsDu/fix/check-promise-condition
fix:the judgment of promise is changed from instanceof to Promises/A+…
2021-06-18 12:26:02 +02:00
Tobias Koppers 3b555175e6 unreference some of the intermediate data when unserializing 2021-06-17 11:25:49 +02:00
du 946e96f476 fix:the judgment of promise is changed from instanceof to Promises/A+ standard 2021-05-29 00:53:19 +08:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 766be5a3fd add cache.profile flag for more info about (de)serialization timings 2021-04-28 09:10:43 +02:00
Tobias Koppers 0eb2f352fe fix typo
thanks @markjm
2021-04-21 07:20:11 +02:00
Tobias Koppers 177736f59c avoid leaking unused memory in buffer backing stores in development mode 2021-04-20 15:22:16 +02:00
Tobias Koppers 8f3a16a49a improve handling of optional build dependencies 2021-04-06 11:28:41 +02:00
Tobias Koppers c84329f73c add GC to the memory cache and make it configurable
memory GC happens by default when persistent cache is enabled and in development mode
otherwise memory cache is kept forever

make maxAge for persistent cache configurable
GC the oldest content file even if it's not touched (to keep cache size small)

filesystem cache will now no longer cache in memory, but restore items from disk again when it was persisted
2021-04-01 17:12:53 +02:00
Tobias Koppers 8074127b98 avoid leaking memory after the compiler has been closed
clear cache on shutdown
2021-04-01 16:59:48 +02:00
Kyle Warren f74af75a56 fixed possible collision with addAll es proposal 2021-03-11 10:59:44 -08:00
Tobias Koppers d9ef8551c0 fix caching of asset modules 2021-02-04 14:13:44 +01:00
Tobias Koppers a1515fa9f0 add experimental lazy compilation 2021-01-21 17:39:56 +01:00
Tobias Koppers c453624a57 store build deps correctly in cache
improve debug logging for snapshotting
2021-01-13 23:54:15 +01:00
highonweb bc1911bf78 Changed name of memorize function to memoize 2020-12-27 03:02:57 +05:30
Tobias Koppers c75a9ef87f errors in initial cache no longer cause build dependencies to be ignored 2020-12-15 17:06:33 +01:00
Tobias Koppers cbcd459d19 fix conflicting real imports and type imports 2020-11-26 10:02:59 +01:00
Tobias Koppers d6e637f33c add "snapshot" configuration to allow to configure how snapshots are created
expose snapshot options for module, resolve, buildDependencies and resolveBuildDependencies
move managedPaths and immutablePaths from config.cache to config.snapshot
add timestamp + hash snapshotting mode
use timestamp + hash mode by default in production and for buildDependencies
2020-08-26 01:27:13 +02:00
Tobias Koppers 4ccb35170b split cache into smaller parts 2020-08-24 18:16:55 +02:00
Tobias Koppers cee47dc867 Store cache dependencies inside of Snapshot to reduce cache size 2020-08-24 18:16:54 +02:00
Tobias Koppers 6409463d24 only create shared snapshots for 3 or more shared entries
add logging
2020-08-24 18:16:50 +02:00
Tobias Koppers 096c1ec5bd Partially serialize cache items even when some fail to serialize 2020-08-19 20:06:03 +02:00
Tobias Koppers 48ff7043f1 add provide and mergeEtags to CacheFacade 2020-08-19 11:25:24 +02:00
Tobias Koppers 1ac28f7fc2 improve progress reporting 2020-08-14 10:54:26 +02:00
Tobias Koppers f9fe121fc8 improve and add statistics 2020-08-14 10:51:12 +02:00
Tobias Koppers ca369f23c5 do cache related tasks after calling handler in watching
improve progress output
2020-08-01 09:00:17 +02:00
Tobias Koppers fd9b399ae9 Create Cache facade to make it easier to use
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00
Tobias Koppers cfb52451d4 handle case when no snapshot can be created in ResolverCachePlugin 2020-07-07 17:38:03 +02:00
Tobias Koppers b9c50fdb09 fix jsdoc documentations 2020-04-28 19:42:58 +02:00
evilebottnawi dafa4cd69a chore: setup cspell 2020-03-12 19:51:26 +03:00
Nitin Kumar 285529a643
chore: fix typos across the project 2020-03-10 07:29:46 +05:30
Albus Dumbledore 4571fdab69
Fix branding violation ResolverCachePlugin 2020-02-12 20:26:11 +05:30
Albus Dumbledore 466e28b312
Fix branding violation MemoryCachePlugin 2020-02-12 20:23:16 +05:30
Albus Dumbledore ed881885c3
Fix branding violation IdleFileCachePlugin.js 2020-02-12 20:21:28 +05:30
Albus Dumbledore edc7c8fcd5
Fix branding violation AddManagedPathsPlugin 2020-02-12 20:19:14 +05:30
Albus Dumbledore 24448180b0
Fix Branding violation AddBuildDependenciesPlugin 2020-02-12 20:11:30 +05:30
Tobias Koppers e96695a18a add more time logging 2020-01-30 16:10:56 +01:00
Tobias Koppers ec5a744b30 Remove "error" and "ignore" from snapshots 2020-01-29 21:32:50 +01:00