Speed comparison with imageData 1920x1080
Richard Gaskin
ambassador at fourthworld.com
Wed Jun 28 18:47:18 EDT 2017
hh wrote:
> Here is a stack that compares simple grayLevel- and invert-filter
> for an image of size 1920x1080, needs LC 8 or 9. It shows the power
> of this "external" we have via LC Builder/the browser widget.
>
> go stack url ("http://hh.on-rev.com/xstacks/speedComparison.livecode")
> or download the file
> http://hh.on-rev.com/xstacks/speedComparison.livecode.zip (1 MByte)
>
> The LC Script version is, TMHO, rather fast (feel free to improve it).
> The HTML5/js version could be optimized but that may be too hard for
> the result ...
> Thus the first HTML5/JS call is slower than the following (initiates
> caching). The average speed improvement depends on your hardware, this
> HTML5/JS version will be in average 20-60 times faster than LC Script.
>
> Note. The improvement is mostly due to the fact, that HTML5/JS uses
> your graphics hardware. With a decent graphic card the speed factor
> is here (for less simple filters) up to 100.
Very interesting. Thanks for posting that.
I wonder how much speed could be gained if we didn't need to do so much
type coercion?
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list