Google-apps
Hoofdmenu

Post a Comment On: C0DE517E

"Alternatives to object handles"

3 Comments -

1 – 3 of 3
Anonymous Anonymous said...

Dynamic binary translation?

March 3, 2011 at 9:55 PM

Blogger DEADC0DE said...

PHP sidechannel metarendering?

March 4, 2011 at 12:19 AM

Anonymous Anonymous said...

It strongly depends on the data you want to access.
The indexed solution works great when you can order your data according to an access pattern.

If you want to e.g. store and reference 2d-points you can create a spatial hierarchy (quadtree, kdtree, etc.) and store the data in many small arrays at it's leafs.
If you don't have overlapping data ranges you can also do this in one big array.

The advantage over a simple "push back" array is that you will always get data in a common context which reduces the average cache miss rate as you will most likely access many objects in the same area.

So - Index based is great as long as you can order your data according to a common access pattern.
If you can't find such a pattern your pretty much bound to random access and fu...ed anyway (in terms of cache misses).

April 5, 2011 at 10:17 AM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot