Changeset 2328


Ignore:
Timestamp:
Feb 12, 2010 12:12:24 PM (10 years ago)
Author:
jwatson
Message:

Changed ph option "enable-gc" to "disable-gc" - we've enabled gc by default for a long time, so it should be harder to disable it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/phinit.py

    r2325 r2328  
    271271                     type="int",
    272272                     default=0)
    273    parser.add_option("--enable-gc",
    274                      help="Enable the python garbage collecter. Default is True.",
    275                      action="store_true",
    276                      dest="enable_gc",
    277                      default=True)
     273   parser.add_option("--disable-gc",
     274                     help="Disable the python garbage collecter. Default is False.",
     275                     action="store_true",
     276                     dest="disable_gc",
     277                     default=False)
    278278
    279279   parser.usage=usage_string
     
    608608       return
    609609
    610     # for a one-pass execution, garbage collection doesn't make
    611     # much sense - so it is disabled by default. Because: It drops
    612     # the run-time by a factor of 3-4 on bigger instances.
    613     if options.enable_gc is False:
     610    if options.disable_gc is True:
    614611       gc.disable()
    615612    else:
Note: See TracChangeset for help on using the changeset viewer.