Skip to content

Instantly share code, notes, and snippets.

View Khatskevich's full-sized avatar

Alexey Khatskevich Khatskevich

View GitHub Profile
@Khatskevich
Khatskevich / gist:1162b079882dfbe3724c756ec0ac2bbd
Last active September 21, 2018 07:15
avro schema; approaches to handle an error
jit + debug
0.18Mrps
debug
0.12Mrps
fast stack
0.08Mrps
stack
0.06Mrps
fast stack raw access
@Khatskevich
Khatskevich / exports
Created March 16, 2018 11:54
gcc (clang - the same) dynamic export+flto problem reproducer
{
var_attr_used_disabled;
var_attr_used_enabled;
func_attr_used_disabled;
func_attr_used_enabled;
};
@Khatskevich
Khatskevich / tarantool_hint_v3
Last active April 2, 2018 12:40
Tarantool SQL scan speed test for different revisions
Tree without hints:
Start insertion
time = 90.542766
nsec/N = 5396.769397
Select iterator
time = 2.593135
nsec/N = 154.562873
Select one by one rand
time = 47.827984
nsec/N = 2850.770016
exec("create table abort(a primary key, b unique on conflict abort)")
exec("insert into abort values(1, 1)", true)
exec("insert into abort values(2, 2)")
exec("update abort set b = 1 where a = 2" , true)
======================================================================
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include <locale.h>
#include <unicode/ucnv.h>
#include <uchar.h>
UConverter* utf8conv;
#!/usr/bin/env tarantool
test = require("sqltester")
--!./tcltestrunner.lua
-- 2012 Sept 27
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
diff --git a/doc/1.8/book/box/data_model.rst b/doc/1.8/book/box/data_model.rst
index 38cd2d0..2080ad4 100644
--- a/doc/1.8/book/box/data_model.rst
+++ b/doc/1.8/book/box/data_model.rst
@@ -197,7 +197,7 @@ byte, then the encoding of the second byte, and so on, so '2345' is less than '5
In Lua, a **number** is double-precision floating-point, but Tarantool allows both
integer and floating-point values. Tarantool will try to store a Lua number as
floating-point if the value contains a decimal point or is very large
-(greater than 100 billion = 1e14), otherwise Tarantool will store it as an integer.
+(greater than 100 trillion = 1e14), otherwise Tarantool will store it as an integer.
[infinite execution]
sqlite-tcl/tkt-7a31705a7e6.test.lua
sqlite-tcl/in5.test.lua