On Wednesday 25 March 2009 17:02:57 Wojtek Walczak wrote:
> Roberto Alsina napisał(a):
> > On Wednesday 25 March 2009 15:02:45 Wojtek Walczak wrote:
> >> In the examples directory in Pyjamas package, there is an app called
> >> dynamictable. While it's python source code is quite short (~400 lines
> >> of code), after compilation to JavaScript it becomes quite big. The main
> >> file is 527K big. My application will certainly be bigger than the
> >> dynamictable example and I don't want to abuse users with 2MB long
> >> JavaScript files.
> >
> > That's maybe 5 or 6 copies of the app, since it generates separate
> > versions for opera / firefox / old firefox / ie /safari /ie6 (I may be
> > missing one ;-)
>
> Yes, you're right, but these files are ~500KB each:
>
> $ ls -sh *.cache.html
> 532K ie6.DynaTable.cache.html      532K opera.DynaTable.cache.html
> 532K mozilla.DynaTable.cache.html  532K safari.DynaTable.cache.html
> 532K oldmoz.DynaTable.cache.html
>
> And thus I wonder, what if my application is bigger than the
> dynamictable app? If my python code is longer, then after the
> 'compilation' to JavaScript there would be more JS code in single
> html file too. And the question is: how big will that file be?

It doesn't grow so fast. I just wrote a full LDAP admin tool and it is roughly 
680KB:

[rals...@hp output]$ ls -sh *cache*
4.0K UserList.nocache.html    680K mozilla.UserList.cache.html  676K 
opera.UserList.cache.html
676K ie6.UserList.cache.html  680K oldmoz.UserList.cache.html   680K 
safari.UserList.cache.html

That's for 650 lines of python code.

-- 
 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  KDE Developer (MFCH)
 (_Y_.)' ._   ) `._`.  " -.-'  http://lateral.netmanagers.com.ar 
  _..`-'_..-_/ /-'_.'     The 6,855th most popular site of Slovenia   
(l)-'' ((i).' ((!.'       according to alexa.com (27/5/2007) 
"Our opponent is an alien starship packed with atomic bombs, I said. 
We have a protractor. Okay, I’ll go home and see if I can scrounge up a 
ruler and a piece of string."  — Neal Stephenson

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to