Move the run-length encoding under a feature - #356
Kerollmops wants to merge 1 commit into
Conversation
|
Wouldn't it be better to add a new method that serializes without run-length encodings? Using features to enable or disable makes it impossible to choose this at runtime, which I see no real reason to not allow. |
|
Hey @lucascool12 👋 You are right, I think it would be better to have a Thanks for the help and have a nice day 🌵 |
That seems like the best approach. I'm not sure what the best way to make this struct backward compatible is. I first thought a normal struct with |
|
Is there a reason calling |
|
Hey @Dr-Emann 👋 Sorry for the very late answer. I was taking holidays.
Yes, the main reason is because our serialization in Meilisearch receives an immutable reference of a roaring bitmap ( Hey @lucascool12 👋
I think you're right and the approach would probably to introduce a new builder pattern like the std OpenOptions one is a better idea 🤔 But I definitely think using a feature is not the right solution, anyway. |
I propose introducing a new feature to disable run-length encoding in certain cases. It is enabled by default. I am wondering about the naming now, as I find
run-length-serializationa bit long and ugly.