Hi, I have a minor proposal to improve the bitset global functions implementation, the ones that are defined in bitset.cpp. I've noticed that these functions employ static function-local tables as an optimization and I wonder why these tables are not constant. I heard that some platforms (ARM if my memory serves me right) may perform better if memory regions are marked read-only. Is it possible to make them const?
const qualifier hasn't any relation to read-only flag of memory page.
I realize it is compiler-dependant but const-qualification at least gives the compiler a chance to optimize.
If it doesn't cost anything I do not see why we wouldn't do that. I will check that.
Done in trunk, thanks.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.