From 1ce76d20dd59b8e0692619144661e473259cc7db Mon Sep 17 00:00:00 2001 From: ndparker Date: Tue, 25 Feb 2014 17:35:39 +0100 Subject: [PATCH] doc fixes. --- README.rst | 14 +++++++------- docs/DESCRIPTION | 12 ++++++------ docs/_userdoc/index.txt | 5 +++-- package.cfg | 2 +- rjsmin.py | 12 ++++++------ 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/README.rst b/README.rst index a28911d..efcc28e 100644 --- a/README.rst +++ b/README.rst @@ -30,7 +30,7 @@ same results as the original ``jsmin.c``. It differs in the following ways: - there is no error detection: unterminated string, regex and comment literals are treated as regular javascript code and minified as such. - Control characters inside string and regex literals are left untouched; they - are not converted to spaces (nor to \n) + are not converted to spaces (nor to \\n) - Newline characters are not allowed inside string and regex literals, except for line continuations in string literals (ECMA-5). - "return /regex/" is recognized correctly. @@ -40,13 +40,13 @@ same results as the original ``jsmin.c``. It differs in the following ways: - rJSmin does not handle streams, but only complete strings. (However, the module provides a "streamy" interface). -Since most parts of the logic are handled by the regex engine it's way -faster than the original python port of ``jsmin.c`` by Baruch Even. The speed -factor varies between about 6 and 55 depending on input and python version -(it gets faster the more compressed the input already is). Compared to the +Since most parts of the logic are handled by the regex engine it's way faster +than the original python port of ``jsmin.c`` by Baruch Even. The speed factor +varies between about 6 and 55 depending on input and python version (it gets +faster the more compressed the input already is). Compared to the speed-refactored python port by Dave St.Germain the performance gain is less -dramatic but still between 1.2 and 7. See the docs/BENCHMARKS file for -details. +dramatic but still between 3 and 50 (for huge inputs). See the docs/BENCHMARKS +file for details. rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more. diff --git a/docs/DESCRIPTION b/docs/DESCRIPTION index a8fc047..ceef827 100644 --- a/docs/DESCRIPTION +++ b/docs/DESCRIPTION @@ -23,13 +23,13 @@ same results as the original ``jsmin.c``. It differs in the following ways: - rJSmin does not handle streams, but only complete strings. (However, the module provides a "streamy" interface). -Since most parts of the logic are handled by the regex engine it's way -faster than the original python port of ``jsmin.c`` by Baruch Even. The speed -factor varies between about 6 and 55 depending on input and python version -(it gets faster the more compressed the input already is). Compared to the +Since most parts of the logic are handled by the regex engine it's way faster +than the original python port of ``jsmin.c`` by Baruch Even. The speed factor +varies between about 6 and 55 depending on input and python version (it gets +faster the more compressed the input already is). Compared to the speed-refactored python port by Dave St.Germain the performance gain is less -dramatic but still between 1.2 and 7. See the docs/BENCHMARKS file for -details. +dramatic but still between 3 and 50 (for huge inputs)). See the +docs/BENCHMARKS file for details. rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more. diff --git a/docs/_userdoc/index.txt b/docs/_userdoc/index.txt index 7d60384..42aeef5 100644 --- a/docs/_userdoc/index.txt +++ b/docs/_userdoc/index.txt @@ -1,7 +1,8 @@ -.. license: +.. copyright: Copyright 2011 - 2014 André Malo or his licensors, as applicable +.. license: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +48,7 @@ faster than the original python port of ``jsmin.c`` by Baruch Even. The speed factor varies between about 6 and 55 depending on input and python version (it gets faster the more compressed the input already is). Compared to the speed-refactored python port by Dave St.Germain the performance gain is less -dramatic but still between 1.2 and 7. +dramatic but still between 3 and 50 (for huge inputs). |rjsmin| comes with an optional C-reimplementation of the python/regex implementation, which speeds up the minifying process even more. diff --git a/package.cfg b/package.cfg index 28ed1f6..fc8a50b 100644 --- a/package.cfg +++ b/package.cfg @@ -18,7 +18,7 @@ [package] name = rjsmin -python.min = 2.3 +python.min = 2.4 python.max = 3.4 pypy.min = 1.9 pypy.max = 2.0 diff --git a/rjsmin.py b/rjsmin.py index 2054f13..09fc3e0 100755 --- a/rjsmin.py +++ b/rjsmin.py @@ -45,13 +45,13 @@ same results as the original ``jsmin.c``. It differs in the following ways: - rJSmin does not handle streams, but only complete strings. (However, the module provides a "streamy" interface). -Since most parts of the logic are handled by the regex engine it's way -faster than the original python port of ``jsmin.c`` by Baruch Even. The speed -factor varies between about 6 and 55 depending on input and python version -(it gets faster the more compressed the input already is). Compared to the +Since most parts of the logic are handled by the regex engine it's way faster +than the original python port of ``jsmin.c`` by Baruch Even. The speed factor +varies between about 6 and 55 depending on input and python version (it gets +faster the more compressed the input already is). Compared to the speed-refactored python port by Dave St.Germain the performance gain is less -dramatic but still between 1.2 and 7. See the docs/BENCHMARKS file for -details. +dramatic but still between 3 and 50 (for huge inputs). See the docs/BENCHMARKS +file for details. rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.