redis icon indicating copy to clipboard operation
redis copied to clipboard

Cleanup around FAST command flag

Open enjoy-binbin opened this issue 1 year ago • 6 comments

We have many fast O(1) commands that are not marked as FAST, causing them to end up being marked as SLOW. (If it's not fast is slow in this binary world.)

This will affect the ACL, but i am not sure what anyone is doing with it. And this will affect the redis-doc, people get confused when they see a simple command flagged with SLOW.

enjoy-binbin avatar Jan 25 '24 13:01 enjoy-binbin

I may have missed something or misjudged something. It is really difficult to define whether some commands are FAST or SLOW. Push the current commit first (i am a bit tired now)

enjoy-binbin avatar Jan 25 '24 13:01 enjoy-binbin

Would it be more economical to flag the SLOW commands and have everything else be FAST by default?

zuiderkwast avatar Jan 29 '24 17:01 zuiderkwast

Would it be more economical to flag the SLOW commands and have everything else be FAST by default?

yes, i think that will be.

In other words, i'm also wondering if we need an intermediate state, some commands can be fast or can be slow depending the args (such as COUNT).

enjoy-binbin avatar Jan 30 '24 07:01 enjoy-binbin

Would it be more economical to flag the SLOW commands and have everything else be FAST by default?

yes, i think that will be.

In other words, i'm also wondering if we need an intermediate state, some commands can be fast or can be slow depending the args (such as COUNT).

Maybe we should have FAST for the commands that are always fast and SLOW for commands that are always slow. For other commads we don't need any of these flags.

So maybe we don't want not FAST to imply SLOW?

zuiderkwast avatar Feb 01 '24 11:02 zuiderkwast

Maybe we should have FAST for the commands that are always fast and SLOW for commands that are always slow. For other commads we don't need any of these flags. So maybe we don't want not FAST to imply SLOW?

i like this idea, but it depends on how it is promoted later. It is actually more like a cleanup. It is not very profitable, but it is afraid of introducing other problems.

enjoy-binbin avatar Feb 02 '24 03:02 enjoy-binbin

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Mar 24 '24 23:03 CLAassistant