二进制XML?
我是XML和SVG的新手。所以,如果之前已经解决过这个问题请
耐心等待/或者只是指向一个URL。
我编写了一个生成批量的Java应用程序( 150 x 150)
可缩放矢量图形(SVG),这是一个2D XML应用程序,< rect> s。
问题是需要大约10秒显示框架。如果可能的话,我需要
来实现实时显示。所以我认为二进制表示
的数据会加速它。
二进制XML是否可能,或者我不应该使用XML方法。也许它
甚至没有意义,我应该避免使用SVG。
任何建议都表示赞赏。
谢谢。
- Andrew M. Neiderer
I am sort of new to XML and SVG. So if this has been addressed before please
be patient and/or just point me to a URL.
I have written a Java application which generates lots (150 x 150)
of Scaleable Vector Graphics (SVG), which is a 2D XML application, <rect>s.
The problem is that it takes about 10 seconds to display the frame. I need
to approach real-time display if possible. So I thought a binary representation
of the data would speed it up.
Is binary XML a possibility, or should I not use an XML approach. Maybe it
doesn''t even make sense and I should avoid SVG.
Any advice is appreciated.
Thank you.
- Andrew M. Neiderer
Andrew Neiderer写道:
Andrew Neiderer wrote:
我编写了一个Java应用程序,它生成了大量(150 x 150)可缩放矢量图形(SVG),这是一个2D XML应用程序,< rect> s。问题是显示帧大约需要10秒钟。如果可能的话,我需要
接近实时显示。所以我认为数据的二进制表示会加快速度。
你真的认为你的
数据的XML表示是否导致显示速度慢?我宁愿
猜你的显示器的Java实现是否要归咎于
。
二进制XML是否可能,或者我不应该使用XML方法。也许它甚至没有意义,我应该避免使用SVG。
I have written a Java application which generates lots (150 x 150)
of Scaleable Vector Graphics (SVG), which is a 2D XML application, <rect>s.
The problem is that it takes about 10 seconds to display the frame. I need
to approach real-time display if possible. So I thought a binary representation
of the data would speed it up.
Do you really think that the XML representation of your
data is responsible for the slow display ? I would rather
guess that your Java implementation of the display is to
be blamed.
Is binary XML a possibility, or should I not use an XML approach. Maybe it
doesn''t even make sense and I should avoid SVG.
这里已经多次讨论过Binary XML。
看起来微软会在他们的新MS Word应用程序发布时设置一个标准用于存储
XML。
请记住,解压缩二进制文件需要更多时间。
我敢打赌,你的应用程序的瓶颈是SVG,
它的解释和显示过程的其余部分。
Binary XML has been talked about several times here.
It looks like Microsoft will set a standard for storing
XML binarily when their new MS Word application is released.
Remember that uncompressing a binary needs even more time.
I bet that the bottleneck in your application is SVG,
its interpretation and the rest of the display process.
Andrew Neiderer写道:
Andrew Neiderer wrote:
我是XML和SVG的新手。所以如果之前已经解决了这个问题,请耐心等待和/或只是指向一个URL。
我已经编写了一个Java应用程序来生成批量(150 x 150)
可缩放矢量图形(SVG),它是2D XML应用程序,< rect> s。问题是显示帧需要大约10秒钟。如果可能的话,我需要
接近实时显示。所以我认为数据的二进制表示会加快它的速度。
二进制XML是否可能,或者我不应该使用XML方法。也许它甚至没有意义,我应该避免使用SVG。
任何建议都表示赞赏。
谢谢。
> - Andrew M. Neiderer
I am sort of new to XML and SVG. So if this has been addressed before please
be patient and/or just point me to a URL.
I have written a Java application which generates lots (150 x 150)
of Scaleable Vector Graphics (SVG), which is a 2D XML application, <rect>s.
The problem is that it takes about 10 seconds to display the frame. I need
to approach real-time display if possible. So I thought a binary representation
of the data would speed it up.
Is binary XML a possibility, or should I not use an XML approach. Maybe it
doesn''t even make sense and I should avoid SVG.
Any advice is appreciated.
Thank you.
- Andrew M. Neiderer
你不能在xml文件中插入二进制数据,但你可以定义extern
实体,或者您可以使用Unicode对数据进行编码并直接将其插入到xml中(如果使用模式,可能会发现一些问题)
you can''t insert binary data in xml file, but you can define extern
Entity, or you can use Unicode to encode the data and insert it directly
to xml (you could find some problems if you use schema)
2005 -08-12,Andrew Neiderer< ne ****** @ osprey.arl.army.mil>写道:
On 2005-08-12, Andrew Neiderer <ne******@osprey.arl.army.mil> wrote:
我是XML和SVG的新手。所以如果之前已经解决了这个问题,请耐心等待和/或只是指向一个URL。
我已经编写了一个Java应用程序,可以生成大量的(150 x 150)
可缩放矢量图形(SVG),它是2D XML应用程序,< rect> s。问题是显示帧需要大约10秒钟。如果可能的话,我需要
接近实时显示。所以我认为数据的二进制表示会加速它。
二进制XML是否可能,或者我不应该使用XML方法。也许它甚至没有意义,我应该避免使用SVG。
I am sort of new to XML and SVG. So if this has been addressed before please
be patient and/or just point me to a URL.
I have written a Java application which generates lots (150 x 150) of
Scaleable Vector Graphics (SVG), which is a 2D XML application, <rect>s.
The problem is that it takes about 10 seconds to display the frame. I need
to approach real-time display if possible. So I thought a binary
representation of the data would speed it up. Is binary XML a possibility, or should I not use an XML approach. Maybe it
doesn''t even make sense and I should avoid SVG.
SVG仍然很早,但是...
你做过剖析了吗?你是否认为延迟是在XML
解析器中?
-
Alan Gutierrez - al ** @ engrm.com
- http://engrm.com/blogometer/index.html
- http://engrm.com/blogometer/rss.2.0.xml
SVG is still early, but...
Did you do an profiling? Are you assuming that the delay is in the XML
parser?
--
Alan Gutierrez - al**@engrm.com
- http://engrm.com/blogometer/index.html
- http://engrm.com/blogometer/rss.2.0.xml