about summary refs log tree commit homepage
path: root/lib/clogger/pure.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-17 19:34:25 +0000
committerEric Wong <e@80x24.org>2017-02-15 22:28:21 +0000
commit029d072d420f0adf98c620913fe05eba3222e244 (patch)
tree69c1fe46cff76ccb7997c1bc8c801ab047338cba /lib/clogger/pure.rb
parente9baac1c4f912d6394b021af9037441b1602f431 (diff)
downloadclogger-029d072d420f0adf98c620913fe05eba3222e244.tar.gz
Using rb_global_variable excessively can be expensive since it
uses a singly-linked list to track addresses.  Since these
strings are all frozen and constant, put them into an array
instead and only mark the array as a global to improve locality.

Ruby 1.9+ has rb_gc_register_mark_object but it is
not part of the documented, public API, so we're not
using it, yet.
Diffstat (limited to 'lib/clogger/pure.rb')
0 files changed, 0 insertions, 0 deletions