← Back to team overview

yade-dev team mailing list archive

Re: Note on optimized compilation / optimized coding / profiling results

 

Václav S(milauer said:     (by the date of Sat, 23 Feb 2008 07:45:13 +0100)

> BTW Janek, for the class index: the index could be a (really) static
> variable, which would have to be allocated inside .cpp files (by some
> macro, say CREATE_CLASS_INDEX(className) would expand to "int
> className::index=-1", or even YADE_PLUGIN could do this for all classes
> it receives), in this way the plugin _loader_ would assign the index
> right after the plugin is loaded and you could get it simply by
> className::index (but the index would r/w and some _stupid_ user might
> fiddle with it).

that's an interesting idea. I should keep it in mind if it turns out
that boost cannot provide us with class indexes. But the real
question is - will it speed up things?
Maybe we could try that now... it shouldn't hurt too much.

-- 
Janek Kozicki                                                         |
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev



References