Can you consider about introducing our implementation to JRuby? If you agree, I will work on it after completing the implementation.
Details
My application, Embulk, is using JRuby and heavily using Date._strptime method internally to parse timestamp strings. I found that the heavy usage is one of the performance bottlenecks in my application.
To mitigate the performance issue, I started implementing Date._strptime in Java. The features are:
100% compatibility with the specification of Date._strptime in CRuby
Faster performance because the # of objects passing is reduced between Java and (J)Ruby
The implementation uses similar approach with org.jruby.util.RubyDateFormatter and org.jruby.lexer.StrftimeLexer.
Environment
JRuby 9.1.5.0
Java 1.8.0_91 64-Bit Server VM (build 25.91-b14, mixed mode)
Ubuntu 16.04
The text was updated successfully, but these errors were encountered:
@muga We'd love to incorporate your implementation! Provide a PR and let us know you consent to it being in JRuby under our tri-license (GPL 2, LGPL 2, EPL). Thank you!
Overview
Date._strptime
method.Date._strptime
in Java on Java timestamp parser and RubyDateParser embulk/embulk#608Details
My application, Embulk, is using JRuby and heavily using
Date._strptime
method internally to parse timestamp strings. I found that the heavy usage is one of the performance bottlenecks in my application.To mitigate the performance issue, I started implementing
Date._strptime
in Java. The features are:Date._strptime
in CRubyorg.jruby.util.RubyDateFormatter
andorg.jruby.lexer.StrftimeLexer
.Environment
The text was updated successfully, but these errors were encountered: