soulcutter / saxerator

A SAX-based XML parser for parsing large files into manageable chunks
MIT License
128 stars 19 forks source link

Slow performance of lamdas #60

Open fanantoxa opened 7 years ago

fanantoxa commented 7 years ago

@soulcutter Actually lambdas is very slow and can't be optimized by ruby VM. What would you think if I'll replace lambdas for normalization stuff with some abstract class?

==================================
  Mode: cpu(1000)
  Samples: 901 (0.00% miss rate)
  GC: 126 (13.98%)
==================================
     TOTAL    (pct)     SAMPLES    (pct)     FRAME
       107  (11.9%)         107  (11.9%)     Saxerator::Configuration#hash_key_normalizer
soulcutter commented 7 years ago

That's a good idea :+1: