about summary refs log tree commit homepage
path: root/ext
AgeCommit message (Collapse)AuthorFilesLines
2014-10-03tdb.c: fix a spelling error in rb_bug messageEric Wong1-1/+1
Oops.
2014-10-03fix ruby/thread.h checking under 1.9.3Eric Wong1-10/+5
Thanks to 9d30be3b14e56293cb8402e8c820b89a77460b73[1] for reporting this via private email on 2014-10-03T00:55:55Z [1] - (printf "firstname lastname" | sha1sum)
2014-10-03fix -Wformat-security warningEric Wong1-1/+1
In our case, it was actually harmless because tdb_errorstr only returns trusted data, but the warning is ugly.
2014-02-09use a normal Ruby hash to store exceptionsEric Wong1-11/+8
st.h should probably not be part of the public Ruby API, and it may well be removed one day (I would support it).
2014-02-09add siphash24Eric Wong4-0/+332
It's the preferred hash function nowadays by Ruby itself, so it probably makes sense to add it
2014-02-09prepare for rb_thread_blocking_region removalEric Wong2-44/+60
It'll be OK to use rb_thread_call_without_gvl when rb_thread_blocking_region is not detectable at all. We still use rb_thread_blocking_region for Ruby 2.0-2.1 because rb_thread_call_without_gvl was detectable in 1.9.3, but not usable as an internal symbol. ref: https://bugs.ruby-lang.org/issues/9502
2014-02-09rbtdb.h: add missing declarationEric Wong1-0/+1
2014-02-09murmur3: cleanup inlinesEric Wong1-5/+4
force inline didn't work for non-static functions (probably without extern), and we didn't need non-static functions in those cases anyways, so just use static inline and trust the compiler to do its thing.
2011-11-19raise ArgumentError if null bytes exist in file pathEric Wong1-1/+1
We don't want path names silently truncated when passed to the C API.
2011-08-22add murmur3f (x86_64 128 bit truncated to 32-bits)Eric Wong4-1/+137
This is faster for larger keys on x86_64
2011-08-18add murmur3a hashEric Wong4-0/+103
It should be slightly faster than murmur2
2011-01-17fetch and delete may be passed destination bufferEric Wong1-14/+32
This allows apps to reduce GC thrashing by reusing a string buffer.
2010-12-10enforce locking for TDB creation/destroyEric Wong2-2/+18
TDB objects aren't created often, so this shouldn't be noticeable, and there's no other way if any notion of thread-safety is desired.
2010-12-10add a new TDB::HashFunctions moduleEric Wong2-0/+41
It's nice to have common hash functions available...
2010-12-04add support for "clear" and "repack" methodsEric Wong2-0/+27
TDB#clear maps to tdb_wipe_all and TDB#repack maps to TDB#repack.
2010-12-03add optional thread-safety on a per-object basisEric Wong1-2/+6
Thread-safety is useful sometimes and needless overhead otherwise. Default to whatever TDB upstream defaults to.
2010-12-03lookup3: fix build from missing #includeEric Wong1-0/+1
This appears to be needed on x86 Debian Lenny but not x86_64
2010-12-02RDoc updatesEric Wong1-17/+48
We still need a lot of work in this area, but this is better than nothing.
2010-12-01minor RDoc updates v0.1.0Eric Wong1-0/+11
2010-12-01initialEric Wong8-0/+1637