Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'require' from hot path to allow multi-threaded parsing in JRuby
`SourceFactory::create_from(String)` will always run the `require 'stringio'` operation. This prevents a multi-threaded JRuby application from parsing xml on separate threads concurrently given that `require` will pass through a synchronized piece of code. An experiment in removing this `require` lead to a 10x performance improvement on 10 threads parsing incoming strings on xml. For more details see logstash-plugins/logstash-filter-xml#83
- Loading branch information