[svg-developers] Re: Performance question

2005-10-06 Thread Andreas Neumann
Hi Julie,

can you post an example to see how you structured the file? Also which
SVG viewer did you try? Also on which OS did you try, with how much
memory and CPU power available?

But it might well be that 36000 circles are too much for the current
SVG viewers.

The currently existing viewers (ASV, Batik, MozillaSVG) are not
capable of handling huge amounts of data. Although most of them work
on improving the performance.

Renesis (the upcoming SVG viewer to be released later this year or
beginning of next year) claims to be much better, performance like.

---

The other question is: do you really need 36000 circles? Without
seeing the file/project I am guessing that one could perhaps aggregate
things, or load chunks of the file doing network calls.

In cartography, we usually aggregate elements, part of the
generalization process. No human is actually capable to correctly
perceive 36000 elements on a single screen at once. If your canvas is
huge, you might just want to render the currently visible elements.

Andreas

--- In svg-developers@yahoogroups.com, jgfa92004 [EMAIL PROTECTED]
wrote:
 Hi all,
 I have a svg file containing 36000 circles : is it normal that it 
 takes about 5 minutes to display/open ?
 Is there a way to make this more efficient ?
 Thanks.
 Julie





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[svg-developers] Re: Performance question

2005-10-06 Thread Jim Ley

jgfa92004 [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 I have a svg file containing 36000 circles

That's a lot of circles!  on a 1024x768 they'd all have to have a radius of 
2 pixels so you could see them all, at 2px radius, there's no way you could 
see they are circles.  Do you really, really need that many?

: is it normal that it
 takes about 5 minutes to display/open ?
 Is there a way to make this more efficient ?

Reducing the number of elements always helps, are you sure you need that 
many?

Jim. 





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






RE: [svg-developers] Re: Performance question

2005-10-06 Thread julie gautier
Thanks for your quick answer.
 
In my svg file, I have first a javascript section that contains an array that 
have the same nb of lines (36000)
Then here is a part of my svg file section where circles are drawn :
 
svg x=5 y=5 width=600px height=550px viewBox=-98726 -98726 1238168 
1134010
g
rect x=-98726 y=-98726 width=1238168 height=1134010 
style=stroke:black; stroke-width:1031; fill:black/
g
image id=image xlink:href=image.gif x=-98726 y=-98726 width=1238168 
height=1134010 style=visibility:visible;/
g id=Symboles style=stroke:none; stroke-width:1031 
onmouseover=mousover(evt); onmouseout=mousout(evt);
circle id=symb0 cx=537169.48 cy=4524.21 r=35127.501810942 
style=fill:rgb(152,358,0)/
circle id=symb1 cx=474671.64 cy=182166.81 r=32215.4700637596 
style=fill:rgb(58,452,0)/
circle id=symb2 cx=696750.44 cy=769029.75 r=29526.822949676 
style=fill:rgb(295,215,0)/
circle id=symb3 cx=653162.5 cy=511552.63 r=27364.2687989864 
style=fill:rgb(307,203,0)/
circle id=symb4 cx=471007.34 cy=0 r=26407.6201989595 
style=fill:rgb(138,372,0)/
circle id=symb5 cx=467575.06 cy=183184.15 r=26155.1226014087 
style=fill:rgb(226,284,0)/
circle id=symb6 cx=484623.01 cy=175353.69 r=25894.6173775417 
style=fill:rgb(118,392,0)/
circle id=symb7 cx=437859.34 cy=186683.17 r=25405.8633691262 
style=fill:rgb(265,245,0)/
circle id=symb8 cx=243907.63 cy=626090.12 r=24624.8970883142 
style=fill:rgb(367,143,0)/
circle id=symb9 cx=379548.22 cy=92507.34 r=24440.4508132736 
style=fill:rgb(168,342,0)/
circle id=symb10 cx=483975.64 cy=190959.26 r=24342.4206115673 
style=fill:rgb(154,356,0)/
...
/g
/g
/g
/svg

I use the Adobe SVG viewer on IE6, on Windows XP, 2.6 GHz and 1Go RAM.

And I do need to display those 36000 circles : the eye can't see them 
individually but can have a global view which I don't want to reduce...
Thanks again for your help
 
Julie

Andreas Neumann [EMAIL PROTECTED] a écrit :
Hi Julie,

can you post an example to see how you structured the file? Also which
SVG viewer did you try? Also on which OS did you try, with how much
memory and CPU power available?

But it might well be that 36000 circles are too much for the current
SVG viewers.

The currently existing viewers (ASV, Batik, MozillaSVG) are not
capable of handling huge amounts of data. Although most of them work
on improving the performance.

Renesis (the upcoming SVG viewer to be released later this year or
beginning of next year) claims to be much better, performance like.

---

The other question is: do you really need 36000 circles? Without
seeing the file/project I am guessing that one could perhaps aggregate
things, or load chunks of the file doing network calls.

In cartography, we usually aggregate elements, part of the
generalization process. No human is actually capable to correctly
perceive 36000 elements on a single screen at once. If your canvas is
huge, you might just want to render the currently visible elements.

Andreas

--- In svg-developers@yahoogroups.com, jgfa92004 [EMAIL PROTECTED]
wrote:
 Hi all,
 I have a svg file containing 36000 circles : is it normal that it 
 takes about 5 minutes to display/open ?
 Is there a way to make this more efficient ?
 Thanks.
 Julie





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 



-
YAHOO! GROUPS LINKS 


Visit your group svg-developers on the web.
  
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-




-
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

[Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






Re: [svg-developers] Re: Performance question

2005-10-06 Thread Andre M. Winter - Carto.net
hi julie,

there is no real workaround. (trop c'est trop.)

some possibilities although:

- switch of anti-aliasing

- try to render rectangles rather than circles. if they are that small 
that won't make any difference. i did some tests a year ago with 
randomly generated basic shapes. in order to render 5000 rects, ASV3/IE 
takes ~4sec. the same 5000 with circles takes ~18sec. but you wont be 
happy with your 36000 items anyway. 2 rects - ~12sec, 5000 rects 
~25sec. (test were done on the same machine, an old PIII 750mhz, but the 
on a newer machine, the differences stay.

- what's the monster image.gif in there. btw. GIF is not to be supported 
by viewers according to the specification

- pregenerate your files and hardcode your circles. the generation 
precess itself takes time to. if you really need this, build your svg 
fragment with ALL cricles and append it once to the dom instead of 
appending each circle.

a+
andré



-- 
___
andre m. winter,
  cartography for internet and multimedia applications
  schiessstand 4/1, a6091 goetzens, tyrol, austria
  tel.: ++43.5234.32732
  email: [EMAIL PROTECTED]

http://www.vectoreal.com/  SVG consulting and development
http://www.carto.net/  online cartography focusing on SVG
http://www.carto.at/ print and online touristic map solutions 



julie gautier wrote:

Thanks for your quick answer.
 
In my svg file, I have first a javascript section that contains an array that 
have the same nb of lines (36000)
Then here is a part of my svg file section where circles are drawn :
 
svg x=5 y=5 width=600px height=550px viewBox=-98726 -98726 1238168 
1134010
g
rect x=-98726 y=-98726 width=1238168 height=1134010 
style=stroke:black; stroke-width:1031; fill:black/
g
image id=image xlink:href=image.gif x=-98726 y=-98726 width=1238168 
height=1134010 style=visibility:visible;/
g id=Symboles style=stroke:none; stroke-width:1031 
onmouseover=mousover(evt); onmouseout=mousout(evt);
circle id=symb0 cx=537169.48 cy=4524.21 r=35127.501810942 
style=fill:rgb(152,358,0)/
circle id=symb1 cx=474671.64 cy=182166.81 r=32215.4700637596 
style=fill:rgb(58,452,0)/
circle id=symb2 cx=696750.44 cy=769029.75 r=29526.822949676 
style=fill:rgb(295,215,0)/
circle id=symb3 cx=653162.5 cy=511552.63 r=27364.2687989864 
style=fill:rgb(307,203,0)/
circle id=symb4 cx=471007.34 cy=0 r=26407.6201989595 
style=fill:rgb(138,372,0)/
circle id=symb5 cx=467575.06 cy=183184.15 r=26155.1226014087 
style=fill:rgb(226,284,0)/
circle id=symb6 cx=484623.01 cy=175353.69 r=25894.6173775417 
style=fill:rgb(118,392,0)/
circle id=symb7 cx=437859.34 cy=186683.17 r=25405.8633691262 
style=fill:rgb(265,245,0)/
circle id=symb8 cx=243907.63 cy=626090.12 r=24624.8970883142 
style=fill:rgb(367,143,0)/
circle id=symb9 cx=379548.22 cy=92507.34 r=24440.4508132736 
style=fill:rgb(168,342,0)/
circle id=symb10 cx=483975.64 cy=190959.26 r=24342.4206115673 
style=fill:rgb(154,356,0)/
...
/g
/g
/g
/svg

I use the Adobe SVG viewer on IE6, on Windows XP, 2.6 GHz and 1Go RAM.

And I do need to display those 36000 circles : the eye can't see them 
individually but can have a global view which I don't want to reduce...
Thanks again for your help
 
Julie




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






Re: [svg-developers] Re: Performance question

2005-10-06 Thread julie gautier
What do you mean by switch of anti-aliasing ?
Concerning your suggestion of create rectangles instead of circles, why not... 
I'll test it.
I don't understand neither your last suggestion. What I do is to generate the 
file using Batik, so each circle is written inside a loop (creating the circle 
element and append it to the svgDocument)... Could you explain more your advide 
to build your svg fragment with ALL cricles and append it once to the dom 
instead of 
appending each circle. ?
Thanks a lot.
Julie


Andre M. Winter - Carto.net [EMAIL PROTECTED] a écrit :
hi julie,

there is no real workaround. (trop c'est trop.)

some possibilities although:

- switch of anti-aliasing

- try to render rectangles rather than circles. if they are that small 
that won't make any difference. i did some tests a year ago with 
randomly generated basic shapes. in order to render 5000 rects, ASV3/IE 
takes ~4sec. the same 5000 with circles takes ~18sec. but you wont be 
happy with your 36000 items anyway. 2 rects - ~12sec, 5000 rects 
~25sec. (test were done on the same machine, an old PIII 750mhz, but the 
on a newer machine, the differences stay.

- what's the monster image.gif in there. btw. GIF is not to be supported 
by viewers according to the specification

- pregenerate your files and hardcode your circles. the generation 
precess itself takes time to. if you really need this, build your svg 
fragment with ALL cricles and append it once to the dom instead of 
appending each circle.

a+
andré



-- 
___
andre m. winter,
  cartography for internet and multimedia applications
  schiessstand 4/1, a6091 goetzens, tyrol, austria
  tel.: ++43.5234.32732
  email: [EMAIL PROTECTED]

http://www.vectoreal.com/  SVG consulting and development
http://www.carto.net/  online cartography focusing on SVG
http://www.carto.at/ print and online touristic map solutions 



julie gautier wrote:

Thanks for your quick answer.
 
In my svg file, I have first a javascript section that contains an array that 
have the same nb of lines (36000)
Then here is a part of my svg file section where circles are drawn :
 
svg x=5 y=5 width=600px height=550px viewBox=-98726 -98726 1238168 
1134010
g
rect x=-98726 y=-98726 width=1238168 height=1134010 
style=stroke:black; stroke-width:1031; fill:black/
g
image id=image xlink:href=image.gif x=-98726 y=-98726 width=1238168 
height=1134010 style=visibility:visible;/
g id=Symboles style=stroke:none; stroke-width:1031 
onmouseover=mousover(evt); onmouseout=mousout(evt);
circle id=symb0 cx=537169.48 cy=4524.21 r=35127.501810942 
style=fill:rgb(152,358,0)/
circle id=symb1 cx=474671.64 cy=182166.81 r=32215.4700637596 
style=fill:rgb(58,452,0)/
circle id=symb2 cx=696750.44 cy=769029.75 r=29526.822949676 
style=fill:rgb(295,215,0)/
circle id=symb3 cx=653162.5 cy=511552.63 r=27364.2687989864 
style=fill:rgb(307,203,0)/
circle id=symb4 cx=471007.34 cy=0 r=26407.6201989595 
style=fill:rgb(138,372,0)/
circle id=symb5 cx=467575.06 cy=183184.15 r=26155.1226014087 
style=fill:rgb(226,284,0)/
circle id=symb6 cx=484623.01 cy=175353.69 r=25894.6173775417 
style=fill:rgb(118,392,0)/
circle id=symb7 cx=437859.34 cy=186683.17 r=25405.8633691262 
style=fill:rgb(265,245,0)/
circle id=symb8 cx=243907.63 cy=626090.12 r=24624.8970883142 
style=fill:rgb(367,143,0)/
circle id=symb9 cx=379548.22 cy=92507.34 r=24440.4508132736 
style=fill:rgb(168,342,0)/
circle id=symb10 cx=483975.64 cy=190959.26 r=24342.4206115673 
style=fill:rgb(154,356,0)/
...
/g
/g
/g
/svg

I use the Adobe SVG viewer on IE6, on Windows XP, 2.6 GHz and 1Go RAM.

And I do need to display those 36000 circles : the eye can't see them 
individually but can have a global view which I don't want to reduce...
Thanks again for your help
 
Julie




-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 



-
YAHOO! GROUPS LINKS 


Visit your group svg-developers on the web.
  
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-




-
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

[Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:

Re: [svg-developers] Re: Performance question

2005-10-06 Thread Andre M. Winter - Carto.net
hi julie,

What do you mean by switch of anti-aliasing ?
  


check out 
http://www.w3.org/TR/SVG11/painting.html#ShapeRenderingProperty ASV 
supports that.

Concerning your suggestion of create rectangles instead of circles, why not... 
I'll test it.
I don't understand neither your last suggestion. What I do is to generate the 
file using Batik, so each circle is written inside a loop (creating the circle 
element and append it to the svgDocument)... Could you explain more your 
advide to build your svg fragment with ALL cricles and append it once to the 
dom instead of 
appending each circle. ?
  


so you already pregenerate your files, don't you? the files you view and 
that you find slow are static svg? then no improvement is possible here.

otherwise come back and poste your code here.

a+
andré

-- 
___
andre m. winter,
  cartography for internet and multimedia applications
  schiessstand 4/1, a6091 goetzens, tyrol, austria
  tel.: ++43.5234.32732
  email: [EMAIL PROTECTED]

http://www.vectoreal.com/  SVG consulting and development
http://www.carto.net/  online cartography focusing on SVG
http://www.carto.at/ print and online touristic map solutions 





Thanks a lot.
Julie


Andre M. Winter - Carto.net [EMAIL PROTECTED] a écrit :
hi julie,

there is no real workaround. (trop c'est trop.)

some possibilities although:

- switch of anti-aliasing

- try to render rectangles rather than circles. if they are that small 
that won't make any difference. i did some tests a year ago with 
randomly generated basic shapes. in order to render 5000 rects, ASV3/IE 
takes ~4sec. the same 5000 with circles takes ~18sec. but you wont be 
happy with your 36000 items anyway. 2 rects - ~12sec, 5000 rects 
~25sec. (test were done on the same machine, an old PIII 750mhz, but the 
on a newer machine, the differences stay.

- what's the monster image.gif in there. btw. GIF is not to be supported 
by viewers according to the specification

- pregenerate your files and hardcode your circles. the generation 
precess itself takes time to. if you really need this, build your svg 
fragment with ALL cricles and append it once to the dom instead of 
appending each circle.

a+
andré



  





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[svg-developers] Re: Performance question

2005-10-06 Thread Andreas Neumann
Hi Julie,

I still don't understand if you generate the circles in the client, using 
Javascript or on the 
server.

In the first case, that might be one of the reasons why it is very slow.

If you generate the circles on the server, than you can as well aggregate the 
circles.

I had a similar problem where I had to display thens of thousands of positions 
in a map. I 
ended up aggregating the elements using SQL functions in the database. Every 
time the 
user zooms and pans he would just download and see the portion of the map he 
navigated 
to. The more the user zoomed in the less the positions where aggregated. It 
really worked 
well and with no loss of quality. It makes no sense to display thousands of 
elements if they 
all overlap and just create one big soup of circles ...

Otherwise you might also want to look at other technologies besides SVG. SVG 
does not fit 
everywhere. Or wait for a better SVG viewer ... or create a raster version of 
your SVG and 
send the raster to the client.

Andreas

--- In svg-developers@yahoogroups.com, julie gautier [EMAIL PROTECTED] wrote:
 Thanks for your quick answer.
  
 In my svg file, I have first a javascript section that contains an array that 
 have the same 
nb of lines (36000)
 Then here is a part of my svg file section where circles are drawn :
  
 svg x=5 y=5 width=600px height=550px viewBox=-98726 -98726 1238168 
1134010
 g
 rect x=-98726 y=-98726 width=1238168 height=1134010 
style=stroke:black; stroke-width:1031; fill:black/
 g
 image id=image xlink:href=image.gif x=-98726 y=-98726 
 width=1238168 
height=1134010 style=visibility:visible;/
 g id=Symboles style=stroke:none; stroke-width:1031 onmouseover=mousover
(evt); onmouseout=mousout(evt);
 circle id=symb0 cx=537169.48 cy=4524.21 r=35127.501810942 
 style=fill:rgb
(152,358,0)/
 circle id=symb1 cx=474671.64 cy=182166.81 r=32215.4700637596 
style=fill:rgb(58,452,0)/
 circle id=symb2 cx=696750.44 cy=769029.75 r=29526.822949676 
style=fill:rgb(295,215,0)/
 circle id=symb3 cx=653162.5 cy=511552.63 r=27364.2687989864 
style=fill:rgb(307,203,0)/
 circle id=symb4 cx=471007.34 cy=0 r=26407.6201989595 style=fill:rgb
(138,372,0)/
 circle id=symb5 cx=467575.06 cy=183184.15 r=26155.1226014087 
style=fill:rgb(226,284,0)/
 circle id=symb6 cx=484623.01 cy=175353.69 r=25894.6173775417 
style=fill:rgb(118,392,0)/
 circle id=symb7 cx=437859.34 cy=186683.17 r=25405.8633691262 
style=fill:rgb(265,245,0)/
 circle id=symb8 cx=243907.63 cy=626090.12 r=24624.8970883142 
style=fill:rgb(367,143,0)/
 circle id=symb9 cx=379548.22 cy=92507.34 r=24440.4508132736 
style=fill:rgb(168,342,0)/
 circle id=symb10 cx=483975.64 cy=190959.26 r=24342.4206115673 
style=fill:rgb(154,356,0)/
 ...
 /g
 /g
 /g
 /svg
 
 I use the Adobe SVG viewer on IE6, on Windows XP, 2.6 GHz and 1Go RAM.
 
 And I do need to display those 36000 circles : the eye can't see them 
 individually but 
can have a global view which I don't want to reduce...
 Thanks again for your help






 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






RE: [svg-developers] Re: Performance question

2005-10-06 Thread julie gautier
I create the circles on the server, so when the svg is displayed, the circles 
are already written in the file. But what you say is important because I was 
wondering if it could be faster if I'd create the circles by using a javascript 
function when loading the document... So the response seems to be no.
I'm not sure to understand what you mean by agregate... but what I'm sure is 
that I want to display all the circles to have a global view.
And I don't use a database : users specify directly a file that contains the 
data.
And concerning the raster version, what interest me in the svg is the 
interactive part I can't have in a raster document.
Thanks anyway for your help and if you think to a solution, please let me know.
Julie

Andreas Neumann [EMAIL PROTECTED] a écrit :
Hi Julie,

I still don't understand if you generate the circles in the client, using 
Javascript or on the 
server.

In the first case, that might be one of the reasons why it is very slow.

If you generate the circles on the server, than you can as well aggregate the 
circles.

I had a similar problem where I had to display thens of thousands of positions 
in a map. I 
ended up aggregating the elements using SQL functions in the database. Every 
time the 
user zooms and pans he would just download and see the portion of the map he 
navigated 
to. The more the user zoomed in the less the positions where aggregated. It 
really worked 
well and with no loss of quality. It makes no sense to display thousands of 
elements if they 
all overlap and just create one big soup of circles ...

Otherwise you might also want to look at other technologies besides SVG. SVG 
does not fit 
everywhere. Or wait for a better SVG viewer ... or create a raster version of 
your SVG and 
send the raster to the client.

Andreas

--- In svg-developers@yahoogroups.com, julie gautier [EMAIL PROTECTED] wrote:
 Thanks for your quick answer.
  
 In my svg file, I have first a javascript section that contains an array that 
 have the same 
nb of lines (36000)
 Then here is a part of my svg file section where circles are drawn :
  
 svg x=5 y=5 width=600px height=550px viewBox=-98726 -98726 1238168 
1134010
 g
 rect x=-98726 y=-98726 width=1238168 height=1134010 
style=stroke:black; stroke-width:1031; fill:black/
 g
 image id=image xlink:href=image.gif x=-98726 y=-98726 
 width=1238168 
height=1134010 style=visibility:visible;/
 g id=Symboles style=stroke:none; stroke-width:1031 onmouseover=mousover
(evt); onmouseout=mousout(evt);
 circle id=symb0 cx=537169.48 cy=4524.21 r=35127.501810942 
 style=fill:rgb
(152,358,0)/
 circle id=symb1 cx=474671.64 cy=182166.81 r=32215.4700637596 
style=fill:rgb(58,452,0)/
 circle id=symb2 cx=696750.44 cy=769029.75 r=29526.822949676 
style=fill:rgb(295,215,0)/
 circle id=symb3 cx=653162.5 cy=511552.63 r=27364.2687989864 
style=fill:rgb(307,203,0)/
 circle id=symb4 cx=471007.34 cy=0 r=26407.6201989595 style=fill:rgb
(138,372,0)/
 circle id=symb5 cx=467575.06 cy=183184.15 r=26155.1226014087 
style=fill:rgb(226,284,0)/
 circle id=symb6 cx=484623.01 cy=175353.69 r=25894.6173775417 
style=fill:rgb(118,392,0)/
 circle id=symb7 cx=437859.34 cy=186683.17 r=25405.8633691262 
style=fill:rgb(265,245,0)/
 circle id=symb8 cx=243907.63 cy=626090.12 r=24624.8970883142 
style=fill:rgb(367,143,0)/
 circle id=symb9 cx=379548.22 cy=92507.34 r=24440.4508132736 
style=fill:rgb(168,342,0)/
 circle id=symb10 cx=483975.64 cy=190959.26 r=24342.4206115673 
style=fill:rgb(154,356,0)/
 ...
 /g
 /g
 /g
 /svg
 
 I use the Adobe SVG viewer on IE6, on Windows XP, 2.6 GHz and 1Go RAM.
 
 And I do need to display those 36000 circles : the eye can't see them 
 individually but 
can have a global view which I don't want to reduce...
 Thanks again for your help






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 



SPONSORED LINKS 
Computer internet security Computer internet business Computer internet access 
Computer internet privacy securities Computer internet help How to format a 
computer hard drive 

-
YAHOO! GROUPS LINKS 


Visit your group svg-developers on the web.
  
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-




-
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

[Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit 

[svg-developers] Re: Performance question

2005-10-06 Thread Andreas Neumann
have you tried to load the file in Batik and see what part takes the longest? 
In Batik you get 
messages in the status line, telling when the file was loaded, when the scripts 
are parsed 
and when rendering starts. Is it the rendering that takes that long or the 
parsing of the 
file? If you use Batik, remember to give it more memory than the standard 
64megs, 
especially with that many elements.

By aggregating I mean replacing a number of circles with just one circle that 
maybe has a 
bigger radius or different colour than the single circles. In my example I had 
sort of a 
invisible raster with different mesh sizes, depending on the zoom factor. All 
circles that 
fall within one raster cell are aggregated. The new circle center gets the 
average of the 
previous positions - this way it does not look like a regular grid.

I don't know if that helps in your situations.

Andreas

--- In svg-developers@yahoogroups.com, julie gautier [EMAIL PROTECTED] wrote:
 I create the circles on the server, so when the svg is displayed, the circles 
 are already 
written in the file. But what you say is important because I was wondering if 
it could be 
faster if I'd create the circles by using a javascript function when loading 
the document... 
So the response seems to be no.
 I'm not sure to understand what you mean by agregate... but what I'm sure is 
 that I want 
to display all the circles to have a global view.
 And I don't use a database : users specify directly a file that contains the 
 data.
 And concerning the raster version, what interest me in the svg is the 
 interactive part I 
can't have in a raster document.
 Thanks anyway for your help and if you think to a solution, please let me 
 know.
 Julie





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/