210200+ entries in 0.137s

Framedragger: ahh, yeah okay, back-to-back you mean exactly
that, not having
to allocate 1MB per block.
Framedragger: yeah i forget sometimes. fixed block length is nice for
this...
Framedragger: yeah, given actual
tx amounts.. 250mn vs. 2^32
Framedragger: right! ahh
that's nice. (so just
to clarify,
the 1024 byte block
trick wouldn't work if
there's a collision (unless additional budget / w/e))
Framedragger: bear with my slowness, can you clarify how it looks like if
there's a collision in
the initial lookup?
Framedragger: have separate service
taking care of
that? i mean, kernel driver is
this kind of 'externality',
too (and also ring0)
Framedragger: at least i have
the excuse of not having looked at
the bdb problem / staying away from
trb for
the
time being :p
Framedragger: is
this
the first
time you articulated
this approach here? i
think
that's
the best on can have for fs-tx-db
Framedragger: this is quite nice, and as you say, seek operation already gives a small chunk which should cover most/all
tx for current state of affairs (total number of
transactions)...
Framedragger: oh i finally understood, literally all
there is when one seeks
to location 3ec455a2 is a list of block numbers. (or single block number.)
Framedragger: why
the need for "the machine might have
to
try 2 or 3 blocks before it finds
tx"
then? and if so,
then no guarantee of only 1 seek?
Framedragger: asciilifeform: wait, what is "block index"? just
the integer denoting block number?
Framedragger: asciilifeform: hmm, very nice. i suppose it's as close
to fixed-length as is possible given current bitcoin
Framedragger: trinque: it's just a kindergarten way of wrapping up some syscalls. will obviously benchmark outside it later. i wasn't completely certain
that my
tool wouldn't
trash
the host fs. :)
Framedragger: (yeah btw, just ftr, symlink *creation* under populated dir structure (`ln -s files_f1/block35461.txt dc/dc89c1f2b58909d3814b250a731a9b9b791b092759553e3ba6579ffaad3a7565`) is slow. however,
the creation was done using shellscript, need
to move
to c
to be able
to actually profile with precision.)
☟︎ Framedragger: so
the 'matching' (index lookup) is
the 99% here, right?
Framedragger: for now, just generated 1mn symlinks with names corresponding
to
transaction hash hex.
Framedragger: what i want
to do later when i find
time is, actually read file,
too, of course.
Framedragger: will get a way
to
test real disk soon, didn't want
to run on personal
trashy PC, hence shitty server
Framedragger: orly?
this is *ns* (10^-9), mind you. hm. and
this is just resolution of path with single symlink in it
Framedragger spent longer
than wants
to admit sorting out his heap and valgrind'ing.
too much python is bad for a person
Framedragger: getting ~4000-7000ns for symlink resolution
to real path for a 1mn symlink dir structure, e.g.
trinque: asciilifeform: getting rejected by dulap with
that ssh key I gave ya.
mircea_popescu: i suppose
that's why
they have
that "excluding present company" device.