ruby/ruby — pull request #77 by funny-falcon (2012-01-05 10:47:27+00:00)
Title: Organize st.c

This patch makes following changes:

1) `st use function instead of macro` c3328a2f71aaeaa65fe752a4863d4f63ffa68a7a - turning some macros-es into functions.
It seems that modern compiler (gcc 4.5) with aggressive optimization (-O3 enabled by default in ruby-1.9.3) better optimizes functions. Also, it uses tight loop for searching in a packed table.
2) `st macroses for packed tables` f92af2b7c1a0c8c51068e0a537b9857eb29ee2ec - several simple macros-es to organize packed table access
3) `st macroses for allocation` faf83e360e7cc7a0b2b2e3e4d95d8fbc6df9838a - wrap allocation of st_* structs into macroses, so that they could be overridden in a future to optimize hash construction