In order to reduce the amount of data being retrieved from my server by Ajax requests, I'm planning on converting about 30 boolean fields into one binary number, and then using bitwise operators to make use of this data.
I haven't used bitwise operators before and was wondering if they're fast/slow in PHP and JavaScript, i.e. how does building a binary number and then comparing it with another using a bitwise operator perform compared to just looking up a boolean value stored in an array/object?