about summary refs log tree commit homepage
path: root/ext
DateCommit message (Collapse)
2014-10-03tdb.c: fix a spelling error in rb_bug message
Oops.
2014-10-03fix ruby/thread.h checking under 1.9.3
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 warning
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 exceptions
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 siphash24
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 removal
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 declaration
2014-02-09murmur3: cleanup inlines
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 path
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)
This is faster for larger keys on x86_64
2011-08-18add murmur3a hash
It should be slightly faster than murmur2
2011-01-17fetch and delete may be passed destination buffer
This allows apps to reduce GC thrashing by reusing a string buffer.
2010-12-10enforce locking for TDB creation/destroy
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 module
It's nice to have common hash functions available...
2010-12-04add support for "clear" and "repack" methods
TDB#clear maps to tdb_wipe_all and TDB#repack maps to TDB#repack.
2010-12-03add optional thread-safety on a per-object basis
Thread-safety is useful sometimes and needless overhead otherwise. Default to whatever TDB upstream defaults to.
2010-12-03lookup3: fix build from missing #include
This appears to be needed on x86 Debian Lenny but not x86_64
2010-12-02RDoc updates
We still need a lot of work in this area, but this is better than nothing.
2010-12-01minor RDoc updates v0.1.0
2010-12-01initial