diff options
author | Eric Wong <e@80x24.org> | 2017-01-17 19:34:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-15 22:28:21 +0000 |
commit | 029d072d420f0adf98c620913fe05eba3222e244 (patch) | |
tree | 69c1fe46cff76ccb7997c1bc8c801ab047338cba /Rakefile | |
parent | e9baac1c4f912d6394b021af9037441b1602f431 (diff) | |
download | clogger-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 'Rakefile')
0 files changed, 0 insertions, 0 deletions