Coder Social home page Coder Social logo

dbd's People

Contributors

marksim avatar petervandenabeele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

marksim

dbd's Issues

Reading back a 1 M lines (dense) facts file with jruby triggers Dbd::OutOfOrderError.

Reading back a 1 M lines (dense) facts file with jruby triggers Dbd::OutOfOrderError.

Tag 0.0.9.

Reading the same file with ruby-2.0.0 succeeds.

peter_v@peter64:~/p/dbd$ time jruby -J-Xmx18000m bin/test_6.rb  /mnt/sdb2/big/jruby_1_7_4_1_000_000_H
Dbd::OutOfOrderError: Dbd::OutOfOrderError
                << at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/fact/collection.rb:45
                << at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:25
  each_recursively at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/ruby_peter_v-0.0.9/lib/ruby_peter_v/each_recursively.rb:7
                << at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:23
          from_CSV at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:59
              each at /home/peter_v/.rvm/rubies/jruby-1.7.4/lib/ruby/1.9/csv.rb:1792
          from_CSV at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:57
               tap at org/jruby/RubyKernel.java:1860
          from_CSV at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:56
            (root) at bin/test_6.rb:16
              open at org/jruby/RubyIO.java:1148
            (root) at bin/test_6.rb:15

real    0m14.742s
user    0m23.049s
sys 0m0.568s

peter_v@peter64:~/p/dbd$ cd ..
peter_v@peter64:~/p$ cd dbd/
...
Using /home/peter_v/.rvm/gems/ruby-2.0.0-p247 with gemset dbd
peter_v@peter64:~/p/dbd$ ruby bin/test_6.rb  /mnt/sdb2/big/jruby_1_7_4_1_000_000_H
Graph is ready (took 165.768683958s), now starting the write to disk
graph.size is 1001000

Rename Factories to something better (e.g. StubFactories)

I also want to use the "Factory" pattern as a proper pattern in for creating a new instance, so the "Factories" class that is now used for creating stubs/fixtures/test instances, should better be rename to something that is clearly related to specs/tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.