MJ wrote: > Thanks to everyone for the input and feedback. At this point, I'll > not post anymore until I have a specific question (I understand how > a lack of details results in a lack of hard-hitting assistance). > > With respect to the file size, it's helpful enough to know that > 500KB isn't a typical file size. Having that information alone is > helpful toward managing expectations of users. > > I'll check out the Batik list and also do some profiling.
Note: I had a world map generated by a tool (SVG MapGen) which was above 2MB! It was quite detailled, but I also saw that a lot of successive points were identical. I wrote a script to eliminate duplicates and to switch from absolute coordinates (using big numbers) to smaller relative ones, using h and v whenever possible (only one number instead of two). The resulting file was around 400KB! That alone can dramatically reduce the load time of the file. You can also gzip it, and look if it hasn't excessive precision of coordinates (like 1.254541645645 in a much bigger viewport). This reduce not only the load time (which can be quick anyway), but also parse time). A lot of SVG files are below 10KB but they are hand-edited. Most of them are below 100KB, but although I am not a map specialist, I see most of the SVG map files are quite big, due to high details (complex curves) or lot of elements (symbols). So 500KB may not be so much. One point that I saw that can be improved too (at least for file size) is the use of CSS classes to replace repetition of attributes. Beside, there are other speed improvements, you can search this mailing list for ideas. One mentioned that using markers is faster than using symbols, for example. But of course, these tricks highly depends on the target viewer, so profiling is necessary here. -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- ----- 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/