Swazoo 2.2 beta with fast file upload

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Swazoo 2.2 beta with fast file upload

Janko Mivšek
Dear Smalltalkers,

New Swazoo 2.2 is ready for beta testing, with much improved upload
(input streaming) performance as a main new feature.

On Squeak it uploads 15 times faster than before, achieving 1.5MB/s
throughput locally on my Linux 3.2GHz PC.

On VisualWorks it is even more impressive: 30 times better, achieving
15MB/s throughput. This means only 20s for 300MB file upload!

In both cases upload performance is about half of the download one due
to additional MIME parsing needed.

I can say that now we have an Smalltalk web server with comparable
performance to others in terms on upload performance too. This also
means that Swazoo is ready for demanding upload tasks like video
uploading as well, while video (like screencast) serving is a common
practice for a while.


Please help testing it. It is available here:

- Squeak: http://www.squeaksource.com/Swazoo/Swazoo-2.2.beta1.mcz

- VisualWorks: in public Store: Swazoo 2.2beta1

Best regards
Janko


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Paolo Bonzini-2
Paolo Bonzini wrote:
>> Please help testing it. It is available here:
>>
>> - Squeak: http://www.squeaksource.com/Swazoo/Swazoo-2.2.beta1.mcz
>
> For portability, you should look for subtractions without a space on
> either side.  I found a few in the new code for POST handling (all of
> them something-1 or something-2).
>
> The class definition for CompositeResourceTest is missing.

Other nits:

- this, I really don't like:

watchdogSites
     self sites do:
         [:each |
         each isServing
            ifTrue: [(each isKindOf: AIDASite) ifTrue: [each
setLastTimeAliveTimestamp]]]

why not just add Site>>#watchdogEvent (as empty method) and override it
in AIDASite?  I'll do this for GNU Smalltalk.

- #watchdogOther is not defined.

- I had sent to Janko a changeset fixing a race condition.  I have a
small difference in two methods that probably were not merged correctly.
  Here they are:

     HTTPConnection >> nextPutError: aResponse
         aResponse informConnectionClose.
         aResponse writeTo: self stream.

     HTTPConnection >> nextPutResponse: aMessage toRequest: aRequest
         aMessage writeTo: self stream inResponseTo: aRequest

because #writeTo: and #writeTo:inResponseTo: already do a #closeResponse.


I didn't find any other problem in my review of the code in 2.1 vs.
2.2beta.  I am struggling with the usual non-portability of SwazooBuffer
but everything else seems to work.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Janko Mivšek
In reply to this post by Janko Mivšek
Paolo Bonzini wrote:

>> Please help testing it. It is available here:
>>
>> - Squeak: http://www.squeaksource.com/Swazoo/Swazoo-2.2.beta1.mcz
>
> For portability, you should look for subtractions without a space on
> either side.  I found a few in the new code for POST handling (all of
> them something-1 or something-2).

I just corrected that. But you should think about improving GST parser a
bit ;)

The same goes with comparison too (a>b)? What about additions (a+b, a+2)?

> The class definition for CompositeResourceTest is missing.

Where it is missing? I don't see anything missing.

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Paolo Bonzini-2
>> For portability, you should look for subtractions without a space on
>> either side.  I found a few in the new code for POST handling (all of
>> them something-1 or something-2).
>
> I just corrected that. But you should think about improving GST parser a
> bit ;)
>
> The same goes with comparison too (a>b)? What about additions (a+b, a+2)?

No, only - is a problem, and only if the second argument is a number.

>> The class definition for CompositeResourceTest is missing.
>
> Where it is missing? I don't see anything missing.

Oops, I deleted it by mistake and blamed you then.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Paolo Bonzini-2
In reply to this post by Janko Mivšek

> I just corrected that. But you should think about improving GST parser a
> bit ;)

Ok, done. :-)

I applied it to 3.0 too because it is pretty safe.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Chun, Sungjin
In reply to this post by Janko Mivšek
When newer version of GST will be released? Or should I fetch latest version from
code repository(git?) ?

----- Original Message -----
   From: Paolo Bonzini <[hidden email]>
   To: Janko Mivšek <[hidden email]>
   Cc: Swazoo List <[hidden email]>, GNU Smalltalk <[hidden email]>
   Sent: 08-07-29 18:32:50
   Subject: Re: [Swazoo-devel] Swazoo 2.2 beta with fast file upload

 
> I just corrected that. But you should think about improving GST parser a
> bit ;)

Ok, done. :-)

I applied it to 3.0 too because it is pretty safe.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Chun, Sungjin
In reply to this post by Janko Mivšek
When newer version of GST will be released? Or should I fetch latest version from
code repository(git?) ?

----- Original Message -----
   From: Paolo Bonzini <[hidden email]>
   To: Janko Mivšek <[hidden email]>
   Cc: Swazoo List <[hidden email]>, GNU Smalltalk <[hidden email]>
   Sent: 08-07-29 18:32:50
   Subject: Re: [Swazoo-devel] Swazoo 2.2 beta with fast file upload

 
> I just corrected that. But you should think about improving GST parser a
> bit ;)

Ok, done. :-)

I applied it to 3.0 too because it is pretty safe.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Chun, Sungjin
In reply to this post by Janko Mivšek
Rather off-topic, but when will the newer version of GST be released(with newer Swazoo
and your fixes)? Or should I fetch the latest code from code repository(git/svn?)?

----- Original Message -----
   From: Paolo Bonzini <[hidden email]>
   To: Janko Mivšek <[hidden email]>
   Cc: Swazoo List <[hidden email]>, GNU Smalltalk <[hidden email]>
   Sent: 08-07-29 18:32:50
   Subject: Re: [Swazoo-devel] Swazoo 2.2 beta with fast file upload

 
> I just corrected that. But you should think about improving GST parser a
> bit ;)

Ok, done. :-)

I applied it to 3.0 too because it is pretty safe.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Swazoo 2.2 beta with fast file upload

Chun, Sungjin
In reply to this post by Janko Mivšek
Rather off-topic, but when will the newer version of GST be released(with newer Swazoo
and your fixes)? Or should I fetch the latest code from code repository(git/svn?)?

----- Original Message -----
   From: Paolo Bonzini <[hidden email]>
   To: Janko Mivšek <[hidden email]>
   Cc: Swazoo List <[hidden email]>, GNU Smalltalk <[hidden email]>
   Sent: 08-07-29 18:32:50
   Subject: Re: [Swazoo-devel] Swazoo 2.2 beta with fast file upload

 
> I just corrected that. But you should think about improving GST parser a
> bit ;)

Ok, done. :-)

I applied it to 3.0 too because it is pretty safe.

Paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel