Skip to content

4.1.0 - Performance Improvements

Compare
Choose a tag to compare
@eldipa eldipa released this 28 Feb 03:31
· 1141 commits to master since this release

4.1.0 - Performance Improvements
Changes from previous version:
Fixes

  • Reimplemented (and fixed) the universal newlines: now the sequence
    \r\n and \r are replaced by \n correctly.
  • Removed a hardcoded delay when sending something to the underlying
    interpreter. Before was a delay of 0.01 secs, now it is disabled.
    See eb37d35.

Enhancements

  • Cached the compilation of the regexs avoiding calling re.compile
    more than once for a regex.
    The improvement is small as re.compile already has a cache for this
    but it is better to cache ourselves in case we want to change the
    regex engine (Python's re module for now)
  • Refactor of internal ExampleParser's methods allowing to change the
    meaning of things like 'whitespace' or 'ellipsis'.
  • Do not delay the sending of input to the interpreter; make it as
    faster as possible. Before was a delay of 0.01 secs, now it is
    disabled. See eb37d35.
    If needed, the flag 'delaybeforesend' can control this delay (none by
    default) from the command line (-o option) or from the example's
    options string.