Invalidate specific decls before IDE queries
commit5bada74149b33bc555a64d8d126a08467a7a7e6e
authorWaleed Khan <waleedk@fb.com>
Wed, 14 Aug 2019 19:08:04 +0000 (14 12:08 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 14 Aug 2019 19:12:03 +0000 (14 12:12 -0700)
tree0c4bb2f1b356983e2905f71c8d1e362c194032b3
parent8778564b31931dcbc6325bb63d52ff4ff5b2741f
Invalidate specific decls before IDE queries

Summary: By invalidating specific decls before IDE queries (instead of all of them), we substantially improve the latency of IDE operations once the caches have been warmed up.

Reviewed By: jewelpit

Differential Revision: D16102503

fbshipit-source-id: f02065d5b801f34ce28d59b71451c2567d56387d
hphp/hack/src/client/ide_service/clientIdeDaemon.ml
hphp/hack/src/client/ide_service/clientIdeIncremental.ml
hphp/hack/src/providers/decl_provider.ml
hphp/hack/src/providers/decl_provider.mli
hphp/hack/src/providers/memory_bounded_lru_cache.ml
hphp/hack/src/providers/memory_bounded_lru_cache.mli
hphp/hack/test/integration/data/lsp_exchanges/incremental_base.php [new file with mode: 0644]
hphp/hack/test/integration/data/lsp_exchanges/incremental_derived.php [new file with mode: 0644]
hphp/hack/test/integration/test_lsp.py