http://codereview.appspot.com/4965059/diff/1/sqlparse/__init__.py File sqlparse/__init__.py (right): http://codereview.appspot.com/4965059/diff/1/sqlparse/__init__.py#newcode58 sqlparse/__init__.py:58: from sqlparse.engine.filter import StatementFilter My intention was to replace ...
14 years, 1 month ago
(2011-09-01 11:57:35 UTC)
#4
http://codereview.appspot.com/4965059/diff/1/sqlparse/filters.py File sqlparse/filters.py (right): http://codereview.appspot.com/4965059/diff/1/sqlparse/filters.py#newcode466 sqlparse/filters.py:466: def Tokens2Unicode(stream): I'm using the function as a final ...
14 years, 1 month ago
(2011-09-01 12:06:27 UTC)
#5
With the part from __main__ moved to a unittest I'd like to pull in your ...
14 years, 1 month ago
(2011-09-02 10:04:51 UTC)
#6
With the part from __main__ moved to a unittest I'd like to pull in your changes
:)
http://codereview.appspot.com/4965059/diff/1/sqlparse/__init__.py
File sqlparse/__init__.py (right):
http://codereview.appspot.com/4965059/diff/1/sqlparse/__init__.py#newcode58
sqlparse/__init__.py:58: from sqlparse.engine.filter import StatementFilter
On 2011/09/01 11:57:35, piranna wrote:
> My intention was to replace split() function.
>
> split() requires a sql string as argument, but with my conception of the
> pipeline system and being able to use tokenize() as a string-to-stream filter,
> it makes more sense to use split() as a stream-to-list_of_statements filter.
The result should be the same. So the only matter is which is easier to maintain
(yours) and which gives us better performance. For the latter let's leave it as
split2() for now for evaluation. At a later point we can decide again :)
> With the part from __main__ moved to a unittest I'd like to pull in ...
14 years, 1 month ago
(2011-09-02 11:01:21 UTC)
#7
> With the part from __main__ moved to a unittest I'd like to pull in your
> changes :)
>
Work in progress, i promise ;-) You'll have it at lunch or this
afternoon, i'm working at this moment... :-D
> The result should be the same. So the only matter is which is easier to
> maintain (yours) and which gives us better performance. For the latter
> let's leave it as split2() for now for evaluation. At a later point we
> can decide again :)
>
I totally agree with leave it for evaluation, i'll put the different
purpose at docstring. Respect to performance, we'll need some little
benchmarks, but at this moment, since with my pipeline allows re-use
of partial process and also works with generators for almost all, i
have got to reduce the time of my filesystem test to half :-) But
really, this would be thanks to performance or just because the re-use
of partial process (that in fact is a performance progress, but not
directly related to my pipeline generators, it would be implemented
with your system too...)
--
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux
On Fri, Sep 2, 2011 at 1:01 PM, piranna@gmail.com <piranna@gmail.com> wrote: >> With the part ...
14 years, 1 month ago
(2011-09-02 11:03:24 UTC)
#8
On Fri, Sep 2, 2011 at 1:01 PM, piranna@gmail.com <piranna@gmail.com> wrote:
>> With the part from __main__ moved to a unittest I'd like to pull in your
>> changes :)
>>
> Work in progress, i promise ;-) You'll have it at lunch or this
> afternoon, i'm working at this moment... :-D
No need to hurry :)
>
>
>> The result should be the same. So the only matter is which is easier to
>> maintain (yours) and which gives us better performance. For the latter
>> let's leave it as split2() for now for evaluation. At a later point we
>> can decide again :)
>>
> I totally agree with leave it for evaluation, i'll put the different
> purpose at docstring. Respect to performance, we'll need some little
> benchmarks, but at this moment, since with my pipeline allows re-use
> of partial process and also works with generators for almost all, i
> have got to reduce the time of my filesystem test to half :-) But
> really, this would be thanks to performance or just because the re-use
> of partial process (that in fact is a performance progress, but not
> directly related to my pipeline generators, it would be implemented
> with your system too...)
>
>
> --
> "Si quieres viajar alrededor del mundo y ser invitado a hablar en un
> monton de sitios diferentes, simplemente escribe un sistema operativo
> Unix."
> – Linus Tordvals, creador del sistema operativo Linux
>
Issue 4965059: Proposition for pipeline system
(Closed)
Created 14 years, 1 month ago by piranna
Modified 14 years, 1 month ago
Reviewers: Andi Albrecht
Base URL:
Comments: 9