============================
objspace.std.withmethodcache
============================

* **name:** withmethodcache

* **description:** try to cache method lookups

* **command-line:** --objspace-std-withmethodcache

* **command-line for negation:** --no-objspace-std-withmethodcache

* **option type:** boolean option

* **default:** False

* **requirements:**

  + `objspace.std.withtypeversion`_ must be set to 'True'

  + `translation.rweakref`_ must be set to 'True'

.. _objspace.std.withtypeversion: objspace.std.withtypeversion.html
.. _translation.rweakref: translation.rweakref.html





Enable method caching. See the section "Method Caching" in `Standard
Interpreter Optimizations <../interpreter-optimizations.html#method-caching>`__.
