Optimize: bytes.Index and humanize.IBytes in SyncStandaloneReader#909
Optimize: bytes.Index and humanize.IBytes in SyncStandaloneReader#909suxb201 merged 5 commits intotair-opensource:v4from
Conversation
|
Here's a question: Will doing this make the status interface unable to retrieve the humanized result? What if I want to view the status? In pkg: |
|
Currently Interface |
No no, you look at the |
|
Got it. Will check and fix it. |
|
@EquentR Issue resolved. |
|
@suxb201 看一下,好像是能提高一点点性能的样子 |
suxb201
left a comment
There was a problem hiding this comment.
你是正确的
/* If this was a diskless replication, we need to really put
* the slave online when the first ACK is received (which
* confirms slave is online and ready to get more data). */
if (c->repl_put_online_on_ack && c->replstate == SLAVE_STATE_ONLINE)
putSlaveOnline(c);

Opt:
EOF MARKERBefore:

After:
