User:Paul: Difference between revisions
Jump to navigation
Jump to search
(Created page with '== Playing with the OpenWeb - What I've learnt == * If you want to compare colors, you may want to work in the Hue space (pure colors) : http://en.wikipedia.org/wiki/Hue * If y...') |
|||
| Line 11: | Line 11: | ||
* JS objects sent to a Worker via postMessage are JSONified. Be careful with big arrays. | * JS objects sent to a Worker via postMessage are JSONified. Be careful with big arrays. | ||
* You can't use Javascript 1.7/1.8 in a Worker | * You can't use Javascript 1.7/1.8 in a Worker. | ||
... | |||
Revision as of 04:50, 4 June 2009
Playing with the OpenWeb - What I've learnt
- If you want to compare colors, you may want to work in the Hue space (pure colors) : http://en.wikipedia.org/wiki/Hue
- If you know the pixels representing an object, and want to know its position, compute its centroid: http://en.wikipedia.org/wiki/Centroid
- Reduce the number of HTTP requests: for your videos, provide the X-Content-Duration header: https://trac.annodex.net/wiki/HttpHeaders
- In a recursions, not tracing, so if you can (you always can) derecursify your functions.
- JS objects sent to a Worker via postMessage are JSONified. Be careful with big arrays.
- You can't use Javascript 1.7/1.8 in a Worker.
...