Pass FileInfo.fast via argument instead of global storage for Typing_check_service
commit2a8de949642db98c2262cc7bdcfc6b614134d158
authorDwayne Reeves <dreeves@fb.com>
Sun, 20 Dec 2015 21:51:55 +0000 (20 13:51 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Sun, 20 Dec 2015 22:00:58 +0000 (20 14:00 -0800)
tree4895a5c3e88322015dfec31b5d1848a2724cd3f2
parent4175f2d10ece2ea0dbe43f7a19769382f7429a5e
Pass FileInfo.fast via argument instead of global storage for Typing_check_service

Summary: We store the mapping of filenames to names of entities contained to it in `GlobalStorage`. Since this grows with the number of files it makes more sense to pass it as part of the argument for a worker job. This way each worker only receives the data it needs to complete its job.

Reviewed By: int3

Differential Revision: D2778729

fb-gh-sync-id: 5a47aab2abd651d8c336c9496045506f4c8fe785
hphp/hack/src/heap/sharedMem.ml
hphp/hack/src/typing/typing_check_service.ml