Skip to content

Instantly share code, notes, and snippets.

TicksResolved: error code [142], description [Failed to request ticks.: 406: Ticks Notificator -> processing time interval : A time range of the requested ticks is out of the allowed time range.], id [069CC413-3834-4D03-975A-5A184A9EA6C0]
35.974: [Full GC 3462K->3164K(53568K), 0.0736907 secs]
36.049: [Full GC 3462K->3163K(53568K), 0.0745651 secs]
36.125: [Full GC 3462K->3163K(53568K), 0.0744888 secs]
36.201: [Full GC 3462K->3164K(53568K), 0.0732967 secs]
36.276: [Full GC 3462K->3164K(53568K), 0.0744368 secs]
36.352: [Full GC 3462K->3163K(53568K), 0.0734568 secs]
36.427: [Full GC 3462K->3163K(53568K), 0.0745165 secs]
36.502: [Full GC 3462K->3164K(53568K), 0.0744198 secs]
36.579: [Full GC 3462K->3164K(53568K), 0.0732881 secs]
36.653: [Full GC 3462K->3163K(53568K), 0.0745232 secs]
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index 7099d14..9a94837 100644
--- a/lib/webrick/cgi.rb
+++ b/lib/webrick/cgi.rb
@@ -29,7 +29,7 @@ module WEBrick
end
@config = WEBrick::Config::HTTP.dup.update(
:ServerSoftware => ENV["SERVER_SOFTWARE"] || "null",
- :HTTPVersion => HTTPVersion.new(httpv || "1.0"),
+ :HTTPVersion => (httpv ? HTTPVersion::HTTP_1_0 : HTTPVersion.convert(httpv)),
safeRelease: Time spent: 4952956753 COUNT: 155001
Of a run of 40.7s (with some extra IO)
So a little over 10% of the time in doing an IEnumVariant.each with 2 no-arg calls and 2 one-arg calls.
ticks.each do |tick|
price, volume = tick.Price, tick.Volume
if tick_valid? price, volume
# #write "TicksResolved: #{symbol}, #{tick_inspector(tick)}", false
# #tick_inspector tick
# timestamp = Time.parse(tick.timestamp.to_s).to_i
# bucket[timestamp] ||= {'_id' => {'ts' => timestamp, 'cid' => cid, 'drn' => 60}}
# bucket[timestamp]['vals'] << [convert_price_to_ticks(price, tick_size), volume.to_i, determine_price_type(tick.PriceType)]
# i += 1
# write "processed [#{i}] of [#{count}] at [#{Time.now}]" if (i % pct) == 0
@Override
public Variant invoke(final String methodName, final Variant[] variantArgs) {
new Thread() {
@Override
public void run() {
ThreadContext context = runtime.getCurrentContext();
int length = variantArgs.length;
IRubyObject[] args = new IRubyObject[length];
for (int i = 0; i < length; i++) {
15:06:02 ~ $ jruby -e 'IO.popen("ls")'
file:/C:/jruby-1.5.4/lib/jruby.jar!/jruby/path_helper.rb:94:in `smart_split_comm
and': undefined method `strip' for "ls":IO (NoMethodError)
from -e:1
git diff src
git diff src
diff --git a/src/org/jruby/RubyIO.java b/src/org/jruby/RubyIO.java
index e1b77a0..a78152c 100644
--- a/src/org/jruby/RubyIO.java
+++ b/src/org/jruby/RubyIO.java
@@ -3425,16 +3425,10 @@ public class RubyIO extends RubyObject {
IRubyObject cmdObj = null;
if (Platform.IS_WINDOWS) {
String[] tokens = args[0].convertToString().toString().split(" ", 2);
diff --git a/ext/org/jruby/ext/RefQueueLibrary.java b/ext/org/jruby/ext/RefQueueLibrary.java
index 97abe89..9ca8ff6 100644
--- a/ext/org/jruby/ext/RefQueueLibrary.java
+++ b/ext/org/jruby/ext/RefQueueLibrary.java
@@ -72,28 +72,26 @@ public class RefQueueLibrary implements Library {
@JRubyMethod
public IRubyObject remove() {
- try {
- return returnable(queue.remove());
_gmc_internal_:
[echo] Generating invokers...
[echo] Compiling populators...
[javac] /Users/enebo/work/jruby/build.xml:278: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 194 source files to /Users/enebo/work/jruby/build/classes/jruby
[javac] /Users/enebo/work/jruby/src_gen/org$jruby$RubyStruct$StructMethods$Populator.java:26: cannot find symbol
[javac] symbol : class RubyStruct$StructMethods$s_method_multi$RUBYFRAMEDINVOKER$newStruct
[javac] location: package org.jruby
[javac] javaMethod = new org.jruby.RubyStruct$StructMethods$s_method_multi$RUBYFRAMEDINVOKER$newStruct(cls, Visibility.PUBLIC);
[javac] ^