[PATCH] Check system cache invalidations before each command in transaction

Started by Ivan Ivanovover 3 years ago1 messageshackers
Jump to latest
#1Ivan Ivanov
m7onov@yandex.ru

Hello guys.
In the previous discussion [1]/messages/by-id/1205251664297977@mail.yandex.ru we find out that while we are in
transaction function definition is not invalidated if it was redefined
in another session. Here is a patch to fix this. Also, I did a small
perfomance impact measurement (test.sh in attachment) on my home PC
with Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz. The result is (each
transaction is a 10 million calls to functions):

- without patch
latency average = 37087.639 ms
tps = 0.026963

- with patch
latency average = 38793.125 ms
tps = 0.025778

What do you think about it, guys?

[1]: /messages/by-id/1205251664297977@mail.yandex.ru
/messages/by-id/1205251664297977@mail.yandex.ru

Attachments:

0001-Check-system-cache-invalidations-before-each-command.patchtext/x-patch; charset=UTF-8; name=0001-Check-system-cache-invalidations-before-each-command.patchDownload+13-6
test.shapplication/x-shellscript; name=test.shDownload