doc fixes.
This commit is contained in:
parent
f7845454da
commit
1ce76d20dd
14
README.rst
14
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
|
- there is no error detection: unterminated string, regex and comment
|
||||||
literals are treated as regular javascript code and minified as such.
|
literals are treated as regular javascript code and minified as such.
|
||||||
- Control characters inside string and regex literals are left untouched; they
|
- 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
|
- Newline characters are not allowed inside string and regex literals, except
|
||||||
for line continuations in string literals (ECMA-5).
|
for line continuations in string literals (ECMA-5).
|
||||||
- "return /regex/" is recognized correctly.
|
- "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
|
- rJSmin does not handle streams, but only complete strings. (However, the
|
||||||
module provides a "streamy" interface).
|
module provides a "streamy" interface).
|
||||||
|
|
||||||
Since most parts of the logic are handled by the regex engine it's way
|
Since most parts of the logic are handled by the regex engine it's way faster
|
||||||
faster than the original python port of ``jsmin.c`` by Baruch Even. The speed
|
than the original python port of ``jsmin.c`` by Baruch Even. The speed factor
|
||||||
factor varies between about 6 and 55 depending on input and python version
|
varies between about 6 and 55 depending on input and python version (it gets
|
||||||
(it gets faster the more compressed the input already is). Compared to the
|
faster the more compressed the input already is). Compared to the
|
||||||
speed-refactored python port by Dave St.Germain the performance gain is less
|
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
|
dramatic but still between 3 and 50 (for huge inputs). See the docs/BENCHMARKS
|
||||||
details.
|
file for details.
|
||||||
|
|
||||||
rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.
|
rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.
|
||||||
|
|
||||||
|
@ -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
|
- rJSmin does not handle streams, but only complete strings. (However, the
|
||||||
module provides a "streamy" interface).
|
module provides a "streamy" interface).
|
||||||
|
|
||||||
Since most parts of the logic are handled by the regex engine it's way
|
Since most parts of the logic are handled by the regex engine it's way faster
|
||||||
faster than the original python port of ``jsmin.c`` by Baruch Even. The speed
|
than the original python port of ``jsmin.c`` by Baruch Even. The speed factor
|
||||||
factor varies between about 6 and 55 depending on input and python version
|
varies between about 6 and 55 depending on input and python version (it gets
|
||||||
(it gets faster the more compressed the input already is). Compared to the
|
faster the more compressed the input already is). Compared to the
|
||||||
speed-refactored python port by Dave St.Germain the performance gain is less
|
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
|
dramatic but still between 3 and 50 (for huge inputs)). See the
|
||||||
details.
|
docs/BENCHMARKS file for details.
|
||||||
|
|
||||||
rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.
|
rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
.. license:
|
.. copyright:
|
||||||
Copyright 2011 - 2014
|
Copyright 2011 - 2014
|
||||||
André Malo or his licensors, as applicable
|
André Malo or his licensors, as applicable
|
||||||
|
|
||||||
|
.. license:
|
||||||
Licensed under the Apache License, Version 2.0 (the "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 not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
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
|
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
|
(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
|
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
|
|rjsmin| comes with an optional C-reimplementation of the python/regex
|
||||||
implementation, which speeds up the minifying process even more.
|
implementation, which speeds up the minifying process even more.
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = rjsmin
|
name = rjsmin
|
||||||
|
|
||||||
python.min = 2.3
|
python.min = 2.4
|
||||||
python.max = 3.4
|
python.max = 3.4
|
||||||
pypy.min = 1.9
|
pypy.min = 1.9
|
||||||
pypy.max = 2.0
|
pypy.max = 2.0
|
||||||
|
12
rjsmin.py
12
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
|
- rJSmin does not handle streams, but only complete strings. (However, the
|
||||||
module provides a "streamy" interface).
|
module provides a "streamy" interface).
|
||||||
|
|
||||||
Since most parts of the logic are handled by the regex engine it's way
|
Since most parts of the logic are handled by the regex engine it's way faster
|
||||||
faster than the original python port of ``jsmin.c`` by Baruch Even. The speed
|
than the original python port of ``jsmin.c`` by Baruch Even. The speed factor
|
||||||
factor varies between about 6 and 55 depending on input and python version
|
varies between about 6 and 55 depending on input and python version (it gets
|
||||||
(it gets faster the more compressed the input already is). Compared to the
|
faster the more compressed the input already is). Compared to the
|
||||||
speed-refactored python port by Dave St.Germain the performance gain is less
|
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
|
dramatic but still between 3 and 50 (for huge inputs). See the docs/BENCHMARKS
|
||||||
details.
|
file for details.
|
||||||
|
|
||||||
rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.
|
rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user