由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - sigh, Java needs arraycopy for imaging
相关主题
求助,怎么从excel里面读image啊?怎么返回一个变量的地址?
谁能把这个给读出来?(update 怎么从excel里面读image)请教大牛:java可以做这件事情吗
Re: JAVA中测时间的方法?Java会产生更多的page fault导致速度变慢
java可以调用dll吗?你们谁去劝一下goodbug要点脸?
请教若干问题Another Image ques
help!!这两个程序哪个更快?
NoClassDefFoundError问一道关于Vector的题
迷惑了很久,java 和 c++ 到底谁快?[转载] create gif/png image in C or java
相关话题的讨论汇总
话题: java话题: arraycopy话题: sun话题: copy话题: array
进入Java版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
I've seen in my code and Sun's code many times:
copy (src, dst, srcStart, srcPixelStride, srcRowStride,
dstStart, dstPixelStride, dstRowStride);
Array copy is extremely slow, that's why Sun provided System.arraycopy,
but it only works for continuous array copy. The function above is
used extremely often in image processing, all the code I've seen use
slow Java loop. And that costs significant performance :(
m******t
发帖数: 2416
2

If it's so widely used in image processing, I'm sure somewhere someone has
got a nice C library and a JNI interface...

【在 c*****t 的大作中提到】
: I've seen in my code and Sun's code many times:
: copy (src, dst, srcStart, srcPixelStride, srcRowStride,
: dstStart, dstPixelStride, dstRowStride);
: Array copy is extremely slow, that's why Sun provided System.arraycopy,
: but it only works for continuous array copy. The function above is
: used extremely often in image processing, all the code I've seen use
: slow Java loop. And that costs significant performance :(

1 (共1页)
进入Java版参与讨论
相关主题
[转载] create gif/png image in C or java请教若干问题
Re: 如何读取serial port in Javahelp!!
Re: 问一个关于Java Native Interface的问题NoClassDefFoundError
Re: 如何Debug 在JNI 里调用的DLL? (急)迷惑了很久,java 和 c++ 到底谁快?
求助,怎么从excel里面读image啊?怎么返回一个变量的地址?
谁能把这个给读出来?(update 怎么从excel里面读image)请教大牛:java可以做这件事情吗
Re: JAVA中测时间的方法?Java会产生更多的page fault导致速度变慢
java可以调用dll吗?你们谁去劝一下goodbug要点脸?
相关话题的讨论汇总
话题: java话题: arraycopy话题: sun话题: copy话题: array