From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: tarantool-patches@freelists.org, Kirill Shcherbatov <kshcherbatov@tarantool.org> Subject: [tarantool-patches] Re: [PATCH v1 4/4] sql: got rid of redundant bitmask helpers Date: Fri, 22 Feb 2019 20:52:45 +0300 [thread overview] Message-ID: <8cf00087-ea11-10ee-a88f-26a0cd02d51e@tarantool.org> (raw) In-Reply-To: <6924fefa-ec20-1f7d-0008-8c3e448a6b48@tarantool.org> During verbal discussion we decided, that there are no places, where non-smart 64 bit mask is needed. But this patch proves the contrary. Bitmask in most places of its usage is not smart, and can not be smart, because is used for only limited number of optimizations relying on some limited resources like cursors. So now for me it is obvious, that in such places it makes no sense to use 64 bit mask - anyway smartness is not available. I think, you should keep Bitmask 32 bit. What is more, 32bit mask, introduced in the first commit, is never used as a smart one. It means, that you all in all should finally make any 32 bit mask as not smart, replace Bitmask with uint32_t, and refactor its usages with new methods from the first commit. Personally, I still think, that we should introduce bitmask_t and smartmask_t to explicitly distinguish between them and never mix. And to be able to change their size with ease. Because your assumption that we never need non-smart masks appeared to be wrong. Of course, you can consult the server team chat, Kostja, or Kirill, if you do not want to do it.
prev parent reply other threads:[~2019-02-22 17:52 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-02-08 12:52 [tarantool-patches] [PATCH v1 0/4] sql: replace 32 bit column mask Kirill Shcherbatov 2019-02-08 12:52 ` [tarantool-patches] [PATCH v1 1/4] box: introduce new helpers in column_mask.h Kirill Shcherbatov 2019-02-15 17:05 ` [tarantool-patches] " Vladislav Shpilevoy 2019-02-20 13:42 ` Kirill Shcherbatov 2019-02-22 17:51 ` Vladislav Shpilevoy 2019-02-22 18:01 ` Konstantin Osipov 2019-02-22 18:22 ` Konstantin Osipov 2019-02-08 12:52 ` [tarantool-patches] [PATCH v1 2/4] sql: use 64b bitmasks instead of 32b where possible Kirill Shcherbatov 2019-02-15 17:05 ` [tarantool-patches] " Vladislav Shpilevoy 2019-02-20 13:42 ` Kirill Shcherbatov 2019-02-08 12:52 ` [tarantool-patches] [PATCH v1 3/4] sql: got rid of redundant MASKBIT32 definition Kirill Shcherbatov 2019-02-15 17:05 ` [tarantool-patches] " Vladislav Shpilevoy 2019-02-20 13:42 ` Kirill Shcherbatov 2019-02-08 12:52 ` [tarantool-patches] [PATCH v1 4/4] sql: got rid of redundant bitmask helpers Kirill Shcherbatov 2019-02-15 17:05 ` [tarantool-patches] " Vladislav Shpilevoy 2019-02-20 13:42 ` Kirill Shcherbatov 2019-02-22 17:52 ` Vladislav Shpilevoy [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=8cf00087-ea11-10ee-a88f-26a0cd02d51e@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=kshcherbatov@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH v1 4/4] sql: got rid of redundant bitmask helpers' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox