[Static Runtime] Use F14FastMap/F14FastSet (#63999)
authorHao Lu <hlu@fb.com>
Fri, 27 Aug 2021 08:39:14 +0000 (01:39 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 27 Aug 2021 08:40:41 +0000 (01:40 -0700)
commit3c3bba4169067a7340ff1d786a6b61282cf26820
treed439b8ada2b0034f3da2d6ef1fc375264941db1e
parent3f1c8094707f695cf0cf51c795b18093e0a3ab86
[Static Runtime] Use F14FastMap/F14FastSet (#63999)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63999

Use folly::F14FastMap/F14FastSet instead of std::unordered_map/unordered_set in the Static Runtime code base. folly::F14FastMap/F14FastSet implements the same APIs as std::unordered_map/unordered_set but faster. For details see https://github.com/facebook/folly/blob/master/folly/container/F14.md

Reviewed By: d1jang

Differential Revision: D30566149

fbshipit-source-id: 20a7fa2519e4dde96fb3fc61ef6c92bf6d759383
torch/csrc/jit/runtime/static/impl.cpp
torch/csrc/jit/runtime/static/impl.h
torch/csrc/jit/runtime/static/ops.cpp
torch/csrc/jit/runtime/static/te_wrapper.cpp